首页> 外国专利> Copy collector with efficient abort-on-copy transition to mark collector

Copy collector with efficient abort-on-copy transition to mark collector

机译:具有高效的复制中止过渡到标记收集器的复制收集器

摘要

A method for performing garbage collection on an object heap is described. In one embodiment, such a method includes performing a copy phase on an object heap by copying live objects from a source space to a destination space. An abort condition is generated when copying an object from the source space to the destination space fails due to insufficient space. In response to the abort condition, tracing work and reference updating associated with the copy phase are terminated. A mark phase is then initiated that marks live objects in the source space. This mark phase resumes tracing work and reference updating terminated by the copy phase in order to avoid or minimize the repetition of work performed by the copy phase. A corresponding computer program product and system are also described.
机译:描述了一种用于在对象堆上执行垃圾收集的方法。在一个实施例中,这种方法包括通过将活动对象从源空间复制到目标空间来在对象堆上执行复制阶段。当由于空间不足而将对象从源空间复制到目标空间失败时,将生成中止条件。响应中止条件,与复制阶段关联的跟踪工作和参考更新终止。然后启动标记阶段,该阶段标记源空间中的活动对象。此标记阶段恢复跟踪工作和复制阶段终止的参考更新,以避免或减少复制阶段执行的工作的重复。还描述了相应的计算机程序产品和系统。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号