Older-first garbage collection in practice: Evaluation in a Java virtual machine

Darko Stefanović*, Matthew Hertz, Stephen M. Blackburn, Kathryn S. McKinley, J. Eliot B. Moss

*Corresponding author for this work

    Research output: Contribution to journalArticlepeer-review

    8 Citations (Scopus)

    Abstract

    Until recently, the best performing copying garbage collectors used a generational policy which repeatedly collects the very youngest objects, copies any survivors to an older space, and then infrequently collects the older space. A previous study that used garbage-collection simulation pointed to potential improvements by using an Older-First copying garbage collection algorithm. The Older-First algorithm sweeps a fixed-sized window through the heap from older to younger objects, and avoids copying the very youngest objects which have not yet had sufficient time to die. We describe and examine here an implementation of the Older-First algorithm in the Jikes RVM for Java. This investigation shows that Older-First can perform as well as the simulation results suggested, and greatly improves total program performance when compared to using a fixed- the nursery generation collector. We further compare Older-First to a flexible-size nursery generational collector in which the nursery occupies all of the heap that does not contain older objects. In these comparisons, the flexible-nursery collector is occasionally the better of the two, but on average the Older-First collector performs the best.

    Original languageEnglish
    Pages (from-to)25-36
    Number of pages12
    JournalACM SIGPLAN Notices
    Volume38
    Issue number2 SUPPL.
    DOIs
    Publication statusPublished - Feb 2003

    Fingerprint

    Dive into the research topics of 'Older-first garbage collection in practice: Evaluation in a Java virtual machine'. Together they form a unique fingerprint.

    Cite this