Hot-swapping between a Mark&Sweep and a Mark&Compact garbage collector in a generational environment

被引:0
|
作者
Printezis, T [1 ]
机构
[1] Univ Glasgow, Dept Comp Sci, Glasgow G12 8RZ, Lanark, Scotland
关键词
D O I
暂无
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
This paper describes a novel method for dynamically switching between a Mark&Compact (M&C) and a Mark&Sweep (M&S) garbage collector in the generational memory system of a high performance Java virtual machine. A M&C collector reclaims space by sliding all live objects towards the beginning of the heap. A M&S collector de-allocates garbage objects in-place. In this paper, both algorithms are assumed to operate over the old generation of a generational memory system and on their own provide different trade-offs to the application that uses them: faster old collections but with slower young collections and the possibility of fragmentation (M&S) or slower old collections but with faster young collections and the guarantee to eliminate fragmentation (M&C). We propose Hot-Swapping, a technique for dynamically switching between these two algorithms, to attempt to achieve the "best of both worlds". Its introduction to the memory system of the virtual machine imposed minimal changes to the existing implementations of M&C and M&S and virtually no extra performance overhead. Experimental results, presented in the paper, show that this hybrid scheme can either outperform both algorithms, or is very close to the faster of the two (whether this is M&S or M&C), while never being the slowest.
引用
收藏
页码:171 / 184
页数:14
相关论文
共 5 条
  • [1] Lock-free parallel and concurrent garbage collection by mark&sweep
    Gao, H.
    Groote, J. F.
    Hesselink, W. H.
    SCIENCE OF COMPUTER PROGRAMMING, 2007, 64 (03) : 341 - 374
  • [2] An on-the-fly mark and sweep garbage collector based on sliding views
    Azatchi, H
    Levanoni, Y
    Paz, H
    Petrank, E
    ACM SIGPLAN NOTICES, 2003, 38 (11) : 269 - 281
  • [3] Adaptive Scanning Reduces Sweep Time for the Lisp2 Mark-Compact Garbage Collector
    Morikawa, Kazuya
    Ugawa, Tomoharu
    Iwasaki, Hideya
    PROCEEDINGS OF THE ACM SIGPLAN INTERNATIONAL SYMPOSIUM ON MEMORY MANAGEMENT (ISMM '13), 2013, : 15 - 26
  • [4] Adaptive Scanning Reduces Sweep Time for the Lisp2 Mark-Compact Garbage Collector
    Morikawa, Kazuya
    Ugawa, Tomoharu
    Iwasaki, Hideya
    ACM SIGPLAN NOTICES, 2013, 48 (11) : 15 - 26
  • [5] One pass real-time generational mark-sweep garbage collection
    Armstrong, J
    Virding, R
    MEMORY MANAGEMENT, 1995, 986 : 313 - 322