Space-and time-efficient implementation of the Java']Java object model

被引:0
|
作者
Bacon, DF [1 ]
Fink, SJ [1 ]
Grove, D [1 ]
机构
[1] IBM Corp, Thomas J Watson Res Ctr, Yorktown Hts, NY 10598 USA
来源
关键词
D O I
暂无
中图分类号
TP301 [理论、方法];
学科分类号
081202 ;
摘要
While many object-oriented languages impose space overhead of only one word per object to support features like virtual method dispatch, Java's richer functionality has led to implementations that require two or three header words per object. This splice overhead increases memory usage and attendant garbage collection costs, reduces cache locality, and constrains programmers who might naturally solve a problem by using large numbers of small objects. In this paper, we show that with careful engineering a high-performance virtual machine can instantiate most Java objects with only a single-word object header. The single header word provides fast access to the virtual method table, allowing for quick method invocation. The implementation represents other per-object data (lock state, hash code, and garbage collection flags) using heuristic compression techniques. The heuristic retains two-word headers, containing thin lock state, only for objects that have synchronized methods. We describe the implementation of various object models in the IBM Jikes Research Virtual Machine, by introducing a pluggable object model abstraction into the virtual machine implementation. We compare an object model with a two-word header with three different object models with single-word headers, Experimental results show that the object header compression techniques give a mean space savings of 7%, with savings of up to 21%. Compared to the two-word headers, the compressed space-encodings result in application speedups ranging from -1.5% to +2.2%. Performance on synthetic micro-benchmarks ranges from +23% due to benefits from reduced object size, to -12% on a stress test of virtual method invocation.
引用
收藏
页码:111 / 132
页数:22
相关论文
共 50 条
  • [1] Design and implementation of parallel Java']Java with global object space
    Kalé, LV
    Bhandarkar, M
    Wilmarth, G
    INTERNATIONAL CONFERENCE ON PARALLEL AND DISTRIBUTED PROCESSING TECHNIQUES AND APPLICATIONS, VOLS I-III, PROCEEDINGS, 1997, : 235 - 244
  • [2] Efficient object serialization in Java']Java
    Opyrchal, L
    Prakash, A
    19TH IEEE INTERNATIONAL CONFERENCE ON DISTRIBUTED COMPUTING SYSTEMS WORKSHOP, PROCEEDINGS, 1999, : 96 - 101
  • [3] Efficient object querying for Java']Java
    Willis, Darren
    Pearce, David J.
    Noble, James
    ECOOP 2006 - OBJECT-ORIENTED PROGRAMMING, PROCEEDINGS, 2006, 4067 : 28 - 49
  • [4] Efficient implementation of run-time generic types for Java']Java
    Allen, E
    Cartwright, R
    Stoler, B
    GENERIC PROGRAMMING, 2003, 115 : 207 - 236
  • [5] On the design of global object space for efficient multi-threading Java']Java computing on clusters
    Fang, WJ
    Wang, CL
    Lau, FCM
    PARALLEL COMPUTING, 2003, 29 (11-12) : 1563 - 1587
  • [6] Object model in Java']Java: elements and application
    Saleh, K
    INFORMATION AND SOFTWARE TECHNOLOGY, 1999, 41 (04) : 235 - 241
  • [7] Heap profiling for space-efficient Java']Java
    Shaham, R
    Kolodner, EK
    Sagiv, M
    ACM SIGPLAN NOTICES, 2001, 36 (05) : 104 - 113
  • [8] Object Representation Model for a Cache Memory in a Real-Time Java']Java Environment
    Teresa Higuera-Toledano, M.
    2013 IEEE 16TH INTERNATIONAL SYMPOSIUM ON OBJECT/COMPONENT/SERVICE-ORIENTED REAL-TIME DISTRIBUTED COMPUTING (ISORC), 2013,
  • [9] A distributed object model for the Java']Java(TM) system
    Wollrath, A
    Riggs, R
    Waldo, J
    COMPUTING SYSTEMS, 1996, 9 (04): : 265 - 290
  • [10] A knowledge discovery object model API for Java']Java
    Zuyderduyn, SD
    Jones, SJM
    BMC BIOINFORMATICS, 2003, 4 (1)