首页> 外国专利> REDUCING SPIN COUNT IN WORK-STEALING FOR COPYING GARBAGE COLLECTION BASED ON AVERAGE OBJECT REFERENCES

REDUCING SPIN COUNT IN WORK-STEALING FOR COPYING GARBAGE COLLECTION BASED ON AVERAGE OBJECT REFERENCES

机译:减少基于平均对象引用的垃圾回收工作中的旋转次数

摘要

A method is provided for controlling a number of Garbage Collection (GC) threads in a computer system implementing a copying GC process which copies live objects and involves states including a spin state, a yield state, and a sleep state. The method includes determining the number of GC threads to come back to for copying with work-stealing from a given one of the states based on a predicted number of object references, responsive to a number of currently stealable tasks being less than a threshold. The predicted number of object references is calculated using a past average number of object references. The method further includes determining the number of GC threads to come back to for copying work from the given one of the states based on the number of currently stealable tasks, responsive to the number of currently stealable tasks being equal to or greater than the threshold.
机译:提供了一种用于在实现复制GC过程的计算机系统中控制多个垃圾回收(GC)线程的方法,该复制GC过程复制活动对象并涉及包括旋转状态,屈服状态和睡眠状态的状态。该方法包括响应于当前可窃取任务的数量小于阈值,基于预测的对象引用数量,从给定的一种状态中确定要返回以进行窃取工作的GC线程的数量。使用过去平均的对象引用数来计算对象引用的预测数。该方法还包括响应于当前可窃取任务的数量等于或大于阈值,基于当前可窃取任务的数量来确定要返回的用于从给定状态之一复制工作的GC线程的数量。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号