首页>
外国专利>
Method and apparatus for reducing object pre-tenuring overhead in a generational garbage collector
Method and apparatus for reducing object pre-tenuring overhead in a generational garbage collector
展开▼
机译:减少代垃圾收集器中的对象预托管开销的方法和设备
展开▼
页面导航
摘要
著录项
相似文献
摘要
In some circumstances a generational garbage collector may be made more efficient by “pre-tenuring” objects or directly allocating new objects in an old generation instead of allocating them in the normal fashion in a young generation. A pre-tenuring decision is made by a two step process. In the first step, during a young-generation collection, an execution frequency is determined for each allocation site and sites with the highest execution frequency are selected as candidate sites. In the second step, during a subsequent young-generation collection, the survival rates are determined for the candidate sites. After this, objects allocated from sites with sufficiently high survival rates are allocated directly in the old generation.
展开▼