Title
Support for garbage collection at every instruction in a Java compiler
Abstract
A high-performance implementation of a Java Virtual Machine1 requires a compiler to translate Java bytecodes into native instructions, as well as an advanced garbage collector (e.g., copying or generational). When the Java heap is exhausted and the garbage collector executes, the compiler must report to the garbage collector all live object references contained in physical registers and stack locations. Typical compilers only allow certain instructions (e.g., call instructions and backward branches) to be GC-safe; if GC happens at some other instruction, the compiler may need to advance execution to the next GC-safe point. Until now, no one has ever attempted to make every compiler-generated instruction GC-safe, due to the perception that recording this information would require too much space. This kind of support could improve the GC performance in multithreaded applications. We show how to use simple compression techniques to reduce the size of the GC map to about 20% of the generated code size, a result that is competitive with the best previously published results. In addition, we extend the work of Agesen, Detlefs, and Moss, regarding the so-called "JSR Problem" (the single exception to Java's type safety property), in a way that eliminates the need for extra runtime overhead in the generated code.
Year
DOI
Venue
1999
10.1145/301631.301652
programming language design and implementation
Keywords
Field
DocType
java virtual machine1,advanced garbage collector,gc performance,typical compiler,java heap,gc map,garbage collector,java bytecodes,call instruction,java compiler,java,compilers,next gc-safe point,garbage collection,type safety
Programming language,Java annotation,Computer science,Manual memory management,Java concurrency,Real time Java,Real-time computing,Java compiler,Garbage collection,Java Modeling Language,Java
Conference
Volume
Issue
ISSN
34
5
0362-1340
ISBN
Citations 
PageRank 
1-58113-094-5
26
2.97
References 
Authors
3
3
Name
Order
Citations
PageRank
James M. Stichnoth128126.20
Guei-Yuan Lueh240137.41
Michal Cierniak339537.61