首页> 外国专利> Method of delaying space allocation for parallel copying garbage collection

Method of delaying space allocation for parallel copying garbage collection

机译:延迟并行复制垃圾回收空间分配的方法

摘要

The present invention relates to a method of delaying space allocation for parallel copying garbage collection in a data processing system comprising a memory divided in a current area (from-space) used by at least a program thread during current program execution and reserve area (to-space), and wherein a copying garbage collection is run in parallel by several collector threads, the garbage collection consisting in stopping the program threads and flipping the roles of the current area and reserved area before copying into the reserved area the live objects stored in the current area. Such a method comprises the steps of checking (12) by one collector thread the live objects of the current area to be copied in said reserved area, the live objects being referenced by a list of pointers; storing for each live object, a record into an allocation log, this record including at least the address of the object and its size; adding (14) the object size to a total_size which is the accumulated size of all the checked objects for which a record has been stored in the allocation log; and copying (20) all the checked objects into the reserved area when the value of total_size reaches a predetermined allocation bound.
机译:本发明涉及一种在数据处理系统中延迟用于并行复制垃圾收集的空间分配的方法,该数据处理系统包括在当前程序执行期间在至少一个程序线程使用的当前区域(从空间)划分的存储器和保留区域(到-space),其中复制垃圾回收由多个收集器线程并行运行,垃圾回收包括停止程序线程并翻转当前区域和保留区域的角色,然后再将存储在其中的活动对象复制到保留区域中当前区域。这种方法包括以下步骤:通过一个收集线程检查( 12 )要复制到所述保留区域中的当前区域的活动对象,该活动对象由指针列表引用;将每个活动对象的记录存储到分配日志中,该记录至少包括对象的地址及其大小;将对象大小加( 14 )到total_size,total_size是已在分配日志中存储了记录的所有检查对象的累加大小;当total_size的值达到预定的分配范围时,将所有检查的对象复制( 20 )到保留区域中。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号