一种简单但是速度较慢的垃圾回收算法,每个对象拥有一个引用计数器(Reference Counter),当每次引用附加到这个对象时,对象的引用计数器加1。当每次引用超出作用范围或者被设置为null时,对象的引用计数器减1。
基于56个网页-相关网页
为了减少管理对象生命周期的编程工作量, Open CASCADE 中对象的删除函数是由手柄控制类的引用计数( reference counter )来确保。手柄就是用来管理引用计数,当对象不再引用时将会调用 delete 将其删除。
基于12个网页-相关网页
reference counter technique [计] 引用计数器技术
High-voltage reference counter 高压参考柜
LOAD REFERENCE COUNTER 将参考数据装入参考计数器
In our sample, all we have to worry about is the reference counters-both the global and the object counter-and the "database" structures.
在我们的例子里,我们全部要关心的是引用计数—全局和对象计数—和“数据库”结构。
Overhead in memory is very small: You basically have a 4- byte overhead per interface (the vtable pointers in the object's instance data) plus 4 bytes for the reference counter.
内存开销非常小:基本上每个接口需要额外4个字节(对象实例数据里虚函数表指针),加上引用计数的4个字节。
When more than one special register is generated, you must qualify each reference to a LINAGE-COUNTER with its related file name.
当生成多个专用寄存器时,必须用相关联的文件名指定对LINAGE - COUNTER的每个引用。
应用推荐