Generational Garbage Collection Algorithm Based on Lifespan Prediction

Xin Ren, Ying Zhangxu
{"title":"Generational Garbage Collection Algorithm Based on Lifespan Prediction","authors":"Xin Ren, Ying Zhangxu","doi":"10.1109/W-FICLOUD.2016.47","DOIUrl":null,"url":null,"abstract":"This paper proposes a new method of generational garbage collection (GC) algorithm for the issue of low efficiency of garbage collection in embedded virtual machine. Through predicting the lifespan of the allocating objects, the objects predicted of long lifespan can be distributed into the old generation directly, and the copy numbers from the young generation to old generation were decreased, thus the executed time of GC is cute down. In the aspect of generational collection, the young generation implements a non-suspended mode, which the objects allocation and GC are done simultaneously, the old generation uses a integrating strategy, combined lazy-buddy algorithm with mark-sweep algorithm, to achieve the quick allocation and recycle. It not only avoids the copy operation on objects, but also controls the amounts of memory fragments. The experimental on v8 JavaScript engine results shows that this algorithm can reduce the GC time by about 23.9%, operation time by around 17.2%, and the overall operation performance of the system is enhanced evidently.","PeriodicalId":441441,"journal":{"name":"2016 IEEE 4th International Conference on Future Internet of Things and Cloud Workshops (FiCloudW)","volume":"343 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2016-08-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"1","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"2016 IEEE 4th International Conference on Future Internet of Things and Cloud Workshops (FiCloudW)","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/W-FICLOUD.2016.47","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 1

Abstract

This paper proposes a new method of generational garbage collection (GC) algorithm for the issue of low efficiency of garbage collection in embedded virtual machine. Through predicting the lifespan of the allocating objects, the objects predicted of long lifespan can be distributed into the old generation directly, and the copy numbers from the young generation to old generation were decreased, thus the executed time of GC is cute down. In the aspect of generational collection, the young generation implements a non-suspended mode, which the objects allocation and GC are done simultaneously, the old generation uses a integrating strategy, combined lazy-buddy algorithm with mark-sweep algorithm, to achieve the quick allocation and recycle. It not only avoids the copy operation on objects, but also controls the amounts of memory fragments. The experimental on v8 JavaScript engine results shows that this algorithm can reduce the GC time by about 23.9%, operation time by around 17.2%, and the overall operation performance of the system is enhanced evidently.
基于寿命预测的分代垃圾回收算法
针对嵌入式虚拟机垃圾回收效率低的问题,提出了一种新的分代垃圾回收算法。通过预测分配对象的寿命,可以将预期寿命较长的对象直接分配到老一代中,减少了从年轻代到老一代的拷贝数,从而降低了GC的执行时间。在分代收集方面,年轻代采用非挂起模式,对象分配和GC同时进行;老代采用整合策略,将懒哥们儿算法与标记-扫描算法相结合,实现快速分配和回收。它不仅避免了对对象的复制操作,而且还控制了内存片段的数量。在v8 JavaScript引擎上的实验结果表明,该算法可使GC时间减少约23.9%,操作时间减少约17.2%,系统的整体操作性能得到明显提高。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术官方微信