A generational on-the-fly garbage collector for Java']Java

被引:0
作者
Domani, T [1 ]
Kolodner, EK [1 ]
Petrank, E [1 ]
机构
[1] Technion Israel Inst Technol, Dept Comp Sci, IL-32000 Haifa, Israel
关键词
programming languages; memory management; garbage collection; generational garbage collection;
D O I
暂无
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
An on-the-fly garbage collector does not stop the program threads to perform the collection. Instead, the collector executes in a separate thread (or process) in parallel to the program. On-the-fly collectors are useful for multi-threaded applications running on multiprocessor servers, where it is important to fully utilize all processors and provide even response time, especially for systems for which stopping the threads is a costly operation. In this work, we report on the incorporation of generations into an on-the-fly garbage collector. The incorporation is non-trivial since an on-the-fly collector avoids explicit synchronization with the program threads. To the best of our knowledge, such an incorporation has not been tried before. We have implemented the collector for a prototype Java Virtual Machine on AIX, and measured its performance on a 4-way multiprocessor. As for other generational collectors, an on-the-fly generational collector has the potential for reducing the overall running time and working set of an application by concentrating collection efforts on the young objects. However, in contrast to other generational collectors, on-the-fly collectors do not move the objects; thus, there is no segregation between the old and the young objects. Furthermore, on-the-fly collectors do not stop the threads, so there is no extra benefit for the short pauses obtained by generational collection. Nevertheless, comparing our on-the-fly collector with and without generations, it turns out that the generational collector performs better for most applications. The best reduction in overall running time for the benchmarks we measured was 25%. However, there were some benchmarks for which it had no effect and one for which the overall running time increased by 4%.
引用
收藏
页码:274 / 284
页数:11
相关论文
共 50 条
[31]   Reference Object Processing in On-The-Fly Garbage Collection [J].
Ugawa, Tomoharu ;
Jones, Richard E. ;
Ritson, Carl G. .
ACM SIGPLAN NOTICES, 2014, 49 (11) :59-69
[32]   Optimization of Java']Java Virtual Machine with safe-point Garbage Collection [J].
Rogov, Sergey V. ;
Kirillin, Viacheslav A. ;
Sidelnikov, Victor V. .
2006 IEEE TENTH INTERNATIONAL SYMPOSIUM ON CONSUMER ELECTRONICS, PROCEEDINGS, 2006, :395-+
[33]   Improving the Testing of Java']Java Garbage Collection Through an Efficient Benchmark Generation [J].
Portillo-Dominguez, A. Omar ;
Ayala-Rivera, Vanessa .
2018 6TH INTERNATIONAL CONFERENCE IN SOFTWARE ENGINEERING RESEARCH AND INNOVATION (CONISOFT 2018), 2018, :1-10
[34]   Garbage Collection Auto-Tuning for Java']Java MapReduce on Multi-Cores [J].
Singer, Jeremy ;
Kovoor, George ;
Brown, Gavin ;
Lujan, Mikel .
ACM SIGPLAN NOTICES, 2011, 46 (11) :109-118
[35]   An Efficient Garbage Collection in Java']Java Virtual Machine via Swap I/O Optimization [J].
Lee, Hyojeong ;
Chen, Qichen ;
Yeom, Heon Young ;
Son, Yongseok .
PROCEEDINGS OF THE 35TH ANNUAL ACM SYMPOSIUM ON APPLIED COMPUTING (SAC'20), 2020, :1238-1245
[36]   Towards an analysis of garbage collection techniques for embedded real-time Java']Java systems [J].
Higuera-Toledano, M. Teresa .
12th IEEE International Conference on Embedded and Real-Time Computing Systems and Applications, Proceedings, 2006, :97-100
[37]   TRINI: an adaptive load balancing strategy based on garbage collection for clustered Java']Java systems [J].
Portillo-Dominguez, A. Omar ;
Perry, Philip ;
Magoni, Damien ;
Wang, Miao ;
Murphy, John .
SOFTWARE-PRACTICE & EXPERIENCE, 2016, 46 (12) :1705-1733
[38]   Memory power optimization of Java']Java-based embedded systems exploiting garbage collection information [J].
Manuel Velasco, Jose ;
Atienza, David ;
Olcoz, Katzalin .
JOURNAL OF SYSTEMS ARCHITECTURE, 2012, 58 (02) :61-72
[39]   Lightweight and Block-level Concurrent Sweeping for Java']JavaScript Garbage Collection [J].
Kim, Hongjune ;
Bak, Seonmyeong ;
Lee, Jaejin .
ACM SIGPLAN NOTICES, 2014, 49 (05) :155-164
[40]   On the effectiveness of GC in Java']Java [J].
Shaham, R ;
Kolodner, EK ;
Sagiv, M .
ACM SIGPLAN NOTICES, 2001, 36 (01) :12-17