DocumentCode
3791944
Title
On the prediction of Java object lifetimes
Author
H. Inoue;D. Stefanovic;S. Forrest
Author_Institution
Sch. of Comput. Sci., Carleton Univ., Ottawa, Ont., Canada
Volume
55
Issue
7
fYear
2006
Firstpage
880
Lastpage
892
Abstract
Accurately predicting object lifetimes is important for improving memory management systems. Current garbage collectors make relatively coarse-grained predictions (e.g., "short-lived" versus "long-lived") and rely on application-independent heuristics related to the local characteristics of an allocation. This paper introduces a prediction method which is fully precise and makes its predictions based on application-specific training rather than application-independent heuristics. By "fully precise" we mean that the granularity of predictions is equal to the smallest unit of allocation. The method described is the first to combine high precision and efficiency in a single lifetime predictor. Fully precise prediction enables us, for the first time, to study zero-lifetime objects. The paper reports results showing that zero-lifetime objects comprise a significant fraction of object allocations in benchmark programs for the Java programming language and that they are correlated with their allocation context (the call stack and allocation site). Beyond zero-lifetime objects, the paper reports results on predicting longer lived objects, where, in some cases, it is possible to predict the lifetime of objects based on their allocation context (the call stack and allocation site) well. For the SPEC benchmark programs, the number of dynamically allocated objects whose call sites have accurate predictors ranges from 0.2 percent to 61 percent. This method could potentially improve the performance of garbage collectors. The paper proposes a death-ordered collector (DOC) and analyzes its implementation overheads and its best possible performance. The study shows how memory performance could be enhanced using the extra information provided by fully precise prediction.
Keywords
"Object oriented programming","Memory management"
Journal_Title
IEEE Transactions on Computers
Publisher
ieee
ISSN
0018-9340
Type
jour
DOI
10.1109/TC.2006.107
Filename
1637403
Link To Document