On the prediction of Java']Java object lifetimes

被引:12
|
作者
Inoue, Hajime
Stefanovic, Darko
Forrest, Stephanie
机构
[1] Carleton Univ, Sch Comp Sci, Ottawa, ON K1S 5B6, Canada
[2] Univ New Mexico, Dept Comp Sci, Albuquerque, NM 87131 USA
基金
美国国家科学基金会;
关键词
object lifetimes; workload characterization; pretenuring; object-oriented programming languages; garbage collection; program behavior;
D O I
10.1109/TC.2006.107
中图分类号
TP3 [计算技术、计算机技术];
学科分类号
0812 ;
摘要
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 here 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.
引用
收藏
页码:880 / 892
页数:13
相关论文
共 50 条
  • [41] An object oriented framework for systems simulation in Java']Java
    Ramakrishnan, S
    Yao, HY
    PARALLEL AND DISTRIBUTED COMPUTING SYSTEMS, 2000, : 432 - 439
  • [42] An object store model for diagnosing Java']Java programs
    Chen, R
    Wotawa, F
    AI 2005: ADVANCES IN ARTIFICIAL INTELLIGENCE, 2005, 3809 : 865 - 870
  • [43] Object-orientation in Java']Java for scientific programmers
    Bishop, J
    Bishop, N
    SIGCSE 2000: PROCEEDINGS OF THE THIRTY-FIRST SIGCSE TECHNICAL SYMPOSIUM ON COMPUTER SCIENCE EDUCATION, 2000, 32 (01): : 357 - 361
  • [44] A secure object sharing scheme for Java']Java Card
    Zhang, JQ
    Varadharajan, V
    Mu, Y
    INFORMATION AND COMMUNICATIONS SECURITY, PROCEEDINGS, 2002, 2513 : 243 - 251
  • [45] A Java']Java library for implementing distributed object systems
    Maruyama, K
    IEICE TRANSACTIONS ON FUNDAMENTALS OF ELECTRONICS COMMUNICATIONS AND COMPUTER SCIENCES, 2000, E83A (11) : 2253 - 2263
  • [46] Object-oriented database programming in Java']Java
    Ege, RK
    TECHNOLOGY OF OBJECT-ORIENTED LANGUAGES AND SYSTEMS - TOOLS 34, PROCEEDINGS, 2000, : 441 - 441
  • [47] Secure object flow analysis for Java']Java Card
    Éluard, M
    Jensen, T
    USENIX ASSOCIATION AND IFIP WG 8.8 (SMART CARDS) PROCEEDINGS OF CARDIS '02 FIFTH SMART CARD RESEARCH AND ADVANCED APPLICATION CONFERENCE, 2002, : 97 - 110
  • [48] Integration of a dynamic object replication framework in Java']Java
    Strauss, T
    Theel, O
    ELEVENTH EUROMICRO CONFERENCE ON PARALLEL, DISTRIBUTED AND NETWORK-BASED PROCESSING, PROCEEDINGS, 2003, : 258 - 265
  • [49] Java']Java Virtual Machine support for object serialization
    Breg, F
    Polychronopoulos, CD
    CONCURRENCY AND COMPUTATION-PRACTICE & EXPERIENCE, 2003, 15 (3-5): : 263 - 275
  • [50] Object serialization analysis and comparison in Java']Java and .NET
    Hericko, M
    Juric, MB
    Rozman, I
    Beloglavec, S
    Zivkovic, A
    ACM SIGPLAN NOTICES, 2003, 38 (08) : 44 - 54