Headroom-based pretenuring: dynamically pretenuring objects that live "long enough"

Andreas Sewe, Dingwen Yuan, Jan Sinschek, M. Mezini
{"title":"Headroom-based pretenuring: dynamically pretenuring objects that live \"long enough\"","authors":"Andreas Sewe, Dingwen Yuan, Jan Sinschek, M. Mezini","doi":"10.1145/1852761.1852767","DOIUrl":null,"url":null,"abstract":"Many modern garbage collectors are generational, operating under the assumption that \"most objects die young.\" Such collectors allocate all objects in a frequently collected nursery and tenure only surviving objects to a less-frequently collected, older generation. But these survivors induce copying costs upon tenuring. To avoid these costs, pretenuring schemes construct classifiers to predict whether an object will be long-lived or short-lived; accordingly, it is tenured or not immediately upon allocation. Up to now, however, these predictions did not account for one important fact: the proximity of the next collection. In contrast, headroom-based pretenuring does take this into account; thus, it can dynamically pretenure objects whenever they live \"long enough.\"\n We devised two ways to estimate an object's lifetime from garbage collection traces. This led to two headroom-based pre-tenuring schemes, which we implemented on top of Jikes RVM and MMTk. Our experiments show that the dynamic, headroom-based pretenuring schemes outperform static schemes in terms of collector performance, albeit at the cost of increased mutator overhead.","PeriodicalId":169989,"journal":{"name":"Principles and Practice of Programming in Java","volume":"17 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2010-09-15","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"7","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Principles and Practice of Programming in Java","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1145/1852761.1852767","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 7

Abstract

Many modern garbage collectors are generational, operating under the assumption that "most objects die young." Such collectors allocate all objects in a frequently collected nursery and tenure only surviving objects to a less-frequently collected, older generation. But these survivors induce copying costs upon tenuring. To avoid these costs, pretenuring schemes construct classifiers to predict whether an object will be long-lived or short-lived; accordingly, it is tenured or not immediately upon allocation. Up to now, however, these predictions did not account for one important fact: the proximity of the next collection. In contrast, headroom-based pretenuring does take this into account; thus, it can dynamically pretenure objects whenever they live "long enough." We devised two ways to estimate an object's lifetime from garbage collection traces. This led to two headroom-based pre-tenuring schemes, which we implemented on top of Jikes RVM and MMTk. Our experiments show that the dynamic, headroom-based pretenuring schemes outperform static schemes in terms of collector performance, albeit at the cost of increased mutator overhead.
基于headroom的假装:动态地假装存在“足够长”的对象
许多现代垃圾收集器都是分代的,在“大多数对象在年轻时就会死亡”的假设下运行。这样的收集器将经常收集的托儿所中的所有对象分配给不经常收集的老一代,并仅将幸存的对象保留给不经常收集的老一代。但这些幸存者在获得终身教职后会产生复制成本。为了避免这些成本,假装方案构建分类器来预测对象是长寿命还是短寿命;因此,它是终身或不立即分配。然而,到目前为止,这些预测并没有考虑到一个重要的事实:下一个藏品的距离。相比之下,基于净空的假装确实考虑到了这一点;因此,只要对象存在的时间“足够长”,它就可以动态地预占有对象。我们设计了两种方法来根据垃圾收集痕迹估计对象的生命周期。这导致了我们在Jikes RVM和MMTk的基础上实现了两个基于净空的预终身计划。我们的实验表明,动态的、基于净空的假装方案在收集器性能方面优于静态方案,尽管代价是增加了突变器开销。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约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学术文献互助群
群 号:604180095
Book学术官方微信