首页> 外国专利> Eliminating synchronization between sweep and allocate in a concurrent garbage collector

Eliminating synchronization between sweep and allocate in a concurrent garbage collector

机译:消除并发垃圾回收器中清除和分配之间的同步

摘要

A computer-implemented method for eliminating synchronization between sweep and allocate in respect of a newly created object in a concurrent garbage collector for a heap implemented in shared memory having mark and sweep phases. In a first collection cycle, a first attribute is associated with objects believed to be reachable and a second attribute is associated with objects believed to be unreachable, whilst for each successive collection cycle, the roles of the first and second attributes are exchanged. In accordance with conventional mark-sweep garbage collectors, the attribute is a colour: usually Black and White for objects which are believed to be reachable and unreachable, respectively. Exchanging the colours for each collection cycle eliminates the overhead in synchronising the colour marking of a new object depending on whether it is located in an area of the heap that has already been swept or has yet to be swept.
机译:一种用于消除在并发垃圾收集器中针对在具有标记和清除阶段的共享内存中实现的堆中的新创建对象的清除和分配之间的同步的计算机实现的方法。在第一收集周期中,第一属性与被认为是可到达的对象相关联,第二属性与被认为是不可到达的对象相关联,而对于每个连续的收集周期,第一和第二属性的角色被交换。根据常规的标记清除垃圾收集器,该属性是一种颜色:对于分别被认为是可到达和不可到达的对象,通常为黑色和白色。为每个收集周期交换颜色消除了同步新对象的颜色标记的开销,该同步取决于新对象是位于已被清扫还是尚未被清扫的堆区域中。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号