Thread-local heaps for Java
Tamar Domani, Gal Goldshtein, Elliot K. Kolodner et al. · International Symposium on Memory Management · 2002
We present a memory management scheme for Java based on thread-local heaps. Assuming most objects are created and used by a single thread, it is desirable to free the memory manager from redundant synchronization for thread-local objects. Therefore, in our scheme each thread receives a partition of the heap in which it allocates its objects and in which it does local garbage collection without synchronization with other threads. We dynamically monitor to determine which objects are local and which are global. Furthermore, we suggest using profiling to identify allocation sites that almost exclusively allocate global objects, and allocate objects at these sites directly in a global area.We have implemented the thread-local heap memory manager and a preliminary mechanism for direct global allocation on an IBM prototype of JDK 1.3.0 for Windows. Our measurements of thread-local heaps with direct global allocation on a 4-way multiprocessor IBM Netfinity server show that the overall garbage collection times have been substantially reduced, and that most long pauses have been eliminated.
Cited by 95 works. doi:10.1145/512429.512439
Authors
References
- Escape analysis for Java
- Compositional pointer and escape analysis for Java programs
- Escape analysis for object-oriented languages
- Removing unnecessary synchronization in Java
- A concurrent, generational garbage collector for a multithreaded implementation of ML
- Portable, unobtrusive garbage collection for multiprocessor systems
- Generational stack collection and profile-driven pretenuring
- Java server performance: A case study of building efficient, scalable Jvms
- A time- and space-efficient garbage compaction algorithm
- Pretenuring for Java