首页> 外国专利> Reference counting mechanism for garbage collectors

Reference counting mechanism for garbage collectors

机译:垃圾收集器的引用计数机制

摘要

A method of garbage collection and data processing apparatus embodying the same. Within a heap memory, data objects are accessed via respective pointers carried by memory stacks; the memory is periodically swept to mark, for each object, a count of the number of extant pointers thereto from any source and, on detection that an object's count has reached zero, deleting that object. To permit concurrency of mark and sweep operations, a pair of reference count fields are maintained for each object: one holds an ongoing pointer count for the present mark operation and the other holds the value for the preceding one. At the conclusion of each mark operation, the mapping of counts into fields is reversed. An objects count is taken as zero, and the object deleted, when both counts are zero.
机译:一种垃圾收集方法和体现该方法的数据处理设备。在堆内存中,数据对象通过内存堆栈携带的相应指针进行访问;定期扫描内存以为每个对象标记来自任何源的现存指针的数量计数,并在检测到对象的计数已达到零时删除该对象。为了允许标记和清除操作的并发,为每个对象维护一对参考计数字段:一个保留当前标记操作的正在进行的指针计数,另一个保留前一个标记的值。在每个标记操作结束时,计数到字段的映射被颠倒。当两个计数均为零时,将对象计数视为零,并删除该对象。

著录项

  • 公开/公告号US6339779B1

    专利类型

  • 公开/公告日2002-01-15

    原文格式PDF

  • 申请/专利权人 U.S. PHILIPS CORPORATION;

    申请/专利号US19990338150

  • 发明设计人 RICHARD J. HOULDSWORTH;

    申请日1999-06-23

  • 分类号G06F173/00;

  • 国家 US

  • 入库时间 2022-08-22 00:47:25

相似文献

  • 专利
  • 外文文献
  • 中文文献
获取专利

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号