A real-time garbage collector with low overhead and consistent utilization

被引:65
作者
Bacon, DF [1 ]
Cheng, P [1 ]
Rajan, VT [1 ]
机构
[1] IBM Corp, Thomas J Watson Res Ctr, Yorktown Hts, NY 10598 USA
关键词
read barrier; defragmentation; real-time scheduling; utilization;
D O I
10.1145/640128.604155
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Now that the use of garbage collection in languages like Java is becoming widely accepted due to the safety and software engineering benefits it provides, there is significant interest in applying garbage collection to hard real-time systems. Past approaches have generally suffered from one of two major flaws: either they were not provably real-time, or they imposed large space overheads to meet the real-time bounds. We present a mostly non-moving, dynamically defragmenting collector that overcomes both of these limitations: by avoiding copying in most cases, space requirements are kept low; and by fully incrementalizing the collector we are able to meet real-time bounds. We implemented our algorithm in the Jikes RVM and show that at real-time resolution we are able to obtain mutator utilization rates of 45% with only 1.6-2.5 times the actual space required by the application, a factor of 4 improvement in utilization over the best previously published results. Defragmentation causes no more than 4% of the traced data to be copied.
引用
收藏
页码:285 / 298
页数:14
相关论文
共 25 条
[1]   The Jalapeno virtual machine [J].
Alpern, B ;
Attanasio, CR ;
Barton, JJ ;
Burke, MG ;
Cheng, P ;
Choi, JD ;
Cocchi, A ;
Fink, SJ ;
Grove, D ;
Hind, M ;
Hummel, SF ;
Lieber, D ;
Litvinov, V ;
Mergen, MF ;
Ngo, T ;
Russell, JR ;
Sarkar, V ;
Serrano, MJ ;
Shepherd, JC ;
Smith, SE ;
Sreedhar, VC ;
Srinivasan, H ;
Whaley, J .
IBM SYSTEMS JOURNAL, 2000, 39 (01) :211-238
[2]  
APPEL AW, 1988, SIGPLAN NOTICES, V23, P11, DOI 10.1145/960116.53992
[3]  
Arnold M, 2002, LECT NOTES COMPUT SC, V2374, P498
[4]  
Bacon DF, 2002, LECT NOTES COMPUT SC, V2374, P111
[5]   LIST PROCESSING IN REAL-TIME ON A SERIAL COMPUTER [J].
BAKER, HG .
COMMUNICATIONS OF THE ACM, 1978, 21 (04) :280-294
[6]  
BAKER HG, 1992, SIGPLAN NOTICES, V27, P66, DOI 10.1145/130854.130862
[7]  
BENYITZHAK O, 2002, P 3 INT S MEM MAN BE, P100
[8]  
BLACKBURN SM, 2002, P SIGPLAN 2002 C PRO, P153, DOI DOI 10.1145/512529.512548
[9]  
Bollella Greg., 2000, REAL TIME SPECIFICAT
[10]  
Brooks Rodney A., 1984, P ACM C LISP FUNCT P, P256