Replicating real-time garbage collector

被引:2
作者
Kalibera, Tomas [1 ,2 ]
机构
[1] Purdue Univ, W Lafayette, IN 47907 USA
[2] Charles Univ Prague, Prague 14700, Czech Republic
关键词
real-time garbage collection; replication; !text type='java']java[!/text;
D O I
10.1002/cpe.1669
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Real-time Java is becoming a viable platform for real-time applications, bringing new challenges to a garbage collector. A real-time collector has to be incremental as not to cause deadline misses by suspending an application for too long. In particular, if a real-time collector has to relocate objects in the heap, it must do so incrementally and transparently to the application. This is usually achieved via an indirection that has to be followed on every read and write to the heap. We present an alternative solution, based on object replication, which does not need any special handling for memory reads, but writes are more expensive: every value is written twice. As writes are less frequent than reads, the total overhead is reduced. With our implementation in a research real-time Java VM and DaCapo, pseudo-jbb, and SPEC JVM 98 benchmarks, we observe an average speed-up of 4% on a Linux/x86 platform. Compared with an existing technique for parallel systems, our technique targets uni-processor green-threading embedded systems, allowing us to design simpler and more predictable mutator barriers. Thanks to cheap synchronization provided by green threading, our technique features atomic writes to object replicas, providing programmers with the natural behavior in face of unprotected access to shared variables. Copyright (C) 2010 John Wiley & Sons, Ltd.
引用
收藏
页码:1646 / 1664
页数:19
相关论文
共 30 条
  • [1] *AICAS, JAM VIRT MACH
  • [2] *AONIX, PERC VIRT MACH
  • [3] A Real-time Java']Java virtual machine with applications in avionics
    Armbruster, Austin
    Baker, Jason
    Cunei, Antonio
    Flack, Chapman
    Holmes, David
    Pizlo, Filip
    Pla, Edward
    Prochazka, Marek
    Vitek, Jan
    [J]. ACM TRANSACTIONS ON EMBEDDED COMPUTING SYSTEMS, 2008, 7 (01)
  • [4] AUERBACH J, 2007, P INT COMP MUS C ICM
  • [5] BACON DF, 2003, P ACM SIGPLAN SIGACT
  • [6] Accurate garbage collection in uncooperative environments revisited
    Baker, J.
    Cunei, A.
    Kalibera, T.
    Pizlo, F.
    Vitek, J.
    [J]. CONCURRENCY AND COMPUTATION-PRACTICE & EXPERIENCE, 2009, 21 (12) : 1572 - 1606
  • [7] Blackburn S. M., 2006, P ACM SIGPLAN C OBJ
  • [8] BOLLELLA G, 2003, COMP 18 ANN ACM SIGP
  • [9] BROOKS RA, 1984, P ACM S LISP FUNCT P
  • [10] Bruno EricJ., 2009, Real-Time Java Programming: With Java RTS, V1st