ACM Home Page
Please provide us with feedback. Feedback
Run-time evaluation of opportunities for object inlining in Java
Full text PdfPdf (188 KB)
Source Java Grande Conference archive
Proceedings of the 2002 joint ACM-ISCOPE conference on Java Grande table of contents
Seattle, Washington, USA
Pages: 175 - 184  
Year of Publication: 2002
ISBN:1-58113-599-8
Authors
Ondrej Lhoták  McGill University, Montreal, Canada
Laurie Hendren  McGill University, Montreal, Canada
Sponsors
SIGPLAN: ACM Special Interest Group on Programming Languages
ACM: Association for Computing Machinery
Publisher
ACM  New York, NY, USA
Bibliometrics
Downloads (6 Weeks): 3,   Downloads (12 Months): 25,   Citation Count: 3
Additional Information:

abstract   references   cited by   index terms   collaborative colleagues   peer to peer  

Tools and Actions: Review this Article  
DOI Bookmark: Use this link to bookmark this Article: http://doi.acm.org/10.1145/583810.583830
What is a DOI?

ABSTRACT

Object-oriented languages, such as Java, encourage the use of many small objects linked together by field references, instead of a few monolithic structures. While this practice is beneficial from a program design perspective, it can slow down program execution by incurring many pointer indirections. One solution to this problem is object inlining: when the compiler can safely do so, it fuses small objects together, thus removing the reads/writes to the removed field, saving the memory needed to store the field and object header, and reducing the number of object allocations.The objective of this paper is to measure the potential for object inlining by studying the run-time behaviour of a comprehensive set of Java programs. We study the traces of program executions in order to determine which fields behave like inlinable fields. Since we are using dynamic information instead of a static analysis, our results give an upper bound on what could be achieved via a static compiler-based approach. Our experimental results measure the potential improvements attainable with object inlining, including reductions in the numbers of field reads and writes, and reduced memory usage.Our study shows that some Java programs can benefit significantly from object inlining, with close to a 10% speedup. Somewhat to our surprise, our study found one case, the <tt>db</tt> benchmark, where the most important inlinable field was the result of unusual program design, and fixing this small flaw led to both better performance and clearer program design. However, the opportunities for object inlining are highly dependent on the individual program being considered, and are in many cases very limited. Furthermore, fields that are inlinable also have properties that make them potential candidates for other optimizations such as removing redundant memory accesses. The memory savings possible through object inlining are moderate.


REFERENCES

Note: OCR errors may be found in this Reference List extracted from the full text article. ACM has opted to expose the complete List rather than only correct and linked references.

 
1
Ashes suite collection http://www.sable.mcgill.ca/software/.
 
2
SPEC JVM98 benchmarks http://www.spec.org/osg/jvm98/.
3
4
5
6
 
7
P. Laud. Analysis for object inlining in Java. In JOSES workshop, a satellite event of ETAPS 2001. http://i44w3.info.uni-karlsruhe.de/~josesworkshop/01-laud.ps.
 
8
O. Lhoták. Run-time evaluation of object inlining opportunities in Java. Technical Report 2002-3, McGill University, School of Computer Science, http://www.cs.mcgill.ca/resrchpages/reports/02/SOCS-02.3.ps.gz, 2002.
9
 
10
R. Vallée-Rai. Soot - a Java optimization framework. Master's thesis, McGill University, School of Computer Science, http://www.sable.mcgill.ca/publications, July 2000.
 
11
 
12
R. Vallée-Rai, L. Hendren, V. Sundaresan, P. Lam, E. Gagnon, and P. Co. Soot - a Java optimization framework. In Proceedings of CASCON 1999, pages 125--135, 1999.


Collaborative Colleagues:
Ondrej Lhoták: colleagues
Laurie Hendren: colleagues

Peer to Peer - Readers of this Article have also read: