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 条
[21]   Support for garbage collection at every instruction in a Java']Java™ compiler [J].
Stichnoth, JM ;
Lueh, GY ;
Cierniak, M .
ACM SIGPLAN NOTICES, 1999, 34 (05) :118-127
[22]   Garbage collection: Java']Java application servers' Achilles heel [J].
Xian, Feng ;
Srisa-an, Witawas ;
Jiang, Hong .
SCIENCE OF COMPUTER PROGRAMMING, 2008, 70 (2-3) :89-110
[23]   OPTIMAL TENURING AND MAJOR COLLECTION TIMES FOR A GENERATIONAL GARBAGE COLLECTOR [J].
Zhao, Xufeng ;
Nakamura, Syouji ;
Nakagawa, Toshio .
ASIA-PACIFIC JOURNAL OF OPERATIONAL RESEARCH, 2012, 29 (03)
[24]   Controlling garbage collection and heap growth to reduce the execution time of Java']Java applications [J].
Brecht, Tim ;
Arjomandi, Eshrat ;
Li, Chang ;
Pham, Hang .
ACM TRANSACTIONS ON PROGRAMMING LANGUAGES AND SYSTEMS, 2006, 28 (05) :908-941
[25]   Real-time garbage collection for a multithreaded Java']Java microcontroller [J].
Fuhrmann, S ;
Pfeffer, M ;
Kreuzinger, J ;
Ungerer, T ;
Brinkschulte, U .
FOURTH IEEE INTERNATIONAL SYMPOSIUM ON OBJECT-ORIENTED REAL-TIME DISTRIBUTED COMPUTING, PROCEEDINGS, 2001, :69-76
[26]   Real-time garbage collection for a multithreaded Java']Java microcontroller [J].
Pfeffer, M ;
Ungerer, T ;
Fuhrmann, S ;
Kreuzinger, J ;
Brinkschulte, U .
REAL-TIME SYSTEMS, 2004, 26 (01) :89-106
[27]   Optimal Policies for a Generational Garbage Collector with Tenuring Threshold [J].
Zhao, Xu-Feng ;
Nakamura, Syouji ;
Qian, Cun-Hua .
OPERATIONS RESEARCH AND ITS APPLICATIONS, 2010, 12 :39-+
[28]   Modeling, Analysis and Throughput Optimization of a Generational Garbage Collector [J].
Vengerov, David .
ISMM'09: PROCEEDINGS OF THE 2009 ACM SIGPLAN INTERNATIONAL SYMPOSIUM ON MEMORY MANAGEMENT, 2009, :1-9
[30]   Studies on Tenuring Collection Times for a Generational Garbage Collector [J].
Zhao, Xufeng ;
Qian, Cunhua ;
Nakamura, Syouji .
OPERATIONS RESEARCH AND ITS APPLICATIONS: IN ENGINEERING, TECHNOLOGY AND MANAGEMENT, 2011, 14 :284-+