Age-based garbage collection
Authors:
Open Access
- 1 October 1999
- journal article
- Published by Association for Computing Machinery (ACM) in ACM SIGPLAN Notices
- Vol. 34 (10) , 370-381
Abstract
Modern generational garbage collectors look for garbage among the young objects, because they have high mortality; however, these objects include the very youngest objects, which clearly are still live. We introduce new garbage collection algorithms, called age-based , some of which postpone consideration of the youngest objects. Collecting less than the whole heap requires write barrier mechanisms to track pointers into the collected region. We describe here a new, efficient write barrier implementation that works for age-based and traditional generational collectors. To compare several collectors, their configurations, and program behavior, we use an accurate simulator that models all heap objects and the pointers among them, but does not model cache or other memory effects. For object-oriented languages, our results demonstrate that an older-first collector, which collects older objects before the youngest ones, copies on average much less data than generational collectors. Our results also show that an older-first collector does track more pointers, but the combined cost of copying and pointer tracking still favors an older-first over a generational collector in many cases. More importantly, we reopen for consideration the question where in the heap and with which policies copying collectors will achieve their best performance.Keywords
This publication has 20 references indexed in Scilit:
- Generational stack collection and profile-driven pretenuringACM SIGPLAN Notices, 1998
- Generational garbage collection and the radioactive decay modelACM SIGPLAN Notices, 1997
- Garbage collection using a dynamic threatening boundaryACM SIGPLAN Notices, 1995
- Infant mortality and generational garbage collectionACM SIGPLAN Notices, 1993
- A comparative performance evaluation of write barrier implementationACM SIGPLAN Notices, 1992
- Design of the opportunistic garbage collectorACM SIGPLAN Notices, 1989
- A “card-marking” scheme for controlling intergenerational references in generation-based garbage collection on stock hardwareACM SIGPLAN Notices, 1989
- A simple bucket-brigade advancement mechanism for generation-bases garbage collectionACM SIGPLAN Notices, 1989
- Tenuring policies for generation-based storage reclamationACM SIGPLAN Notices, 1988
- List processing in real time on a serial computerCommunications of the ACM, 1978