首页> 外国专利> Fast lifetime analysis of objects in a garbage-collected system

Fast lifetime analysis of objects in a garbage-collected system

机译:垃圾收集系统中对象的快速生命周期分析

摘要

The analysis of the lifetime of objects in a garbage-collected system may be accomplished quickly and effectively using reference counts and cyclic garbage analysis. A reference count is maintained for each of the objects to indicate the number of incoming pointers. Each time the graph structure is altered, the reference counts are updated. Timestamps are recorded each time the reference count for objects change. If a reference count goes to zero, the corresponding object may be indicated as dead. A garbage collection need only be run once (perhaps at the end), and after it is run the system may indicate which objects are cyclic garbage. The timestamps for objects which are cyclic garbage are then reviewed in reverse chronological order. For each timestamp found, the corresponding object and any object reachable from the corresponding object are indicated as dead. These objects are then removed from the set of cyclic garbage.
机译:使用引用计数和循环垃圾分析可以快速有效地完成垃圾收集系统中对象生命周期的分析。为每个对象维护一个引用计数,以指示传入指针的数量。每次更改图形结构时,都会更新参考计数。每当对象的参考计数更改时,都会记录时间戳。如果参考计数变为零,则相应的对象可能被指示为死亡。垃圾收集仅需要运行一次(也许在最后),并且运行后,系统可能会指示哪些对象是循环垃圾。然后以相反的时间顺序查看循环垃圾对象的时间戳。对于找到的每个时间戳,相应的对象和从相应对象可到达的任何对象都表示为无效。然后将这些对象从循环垃圾集中删除。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号