Garbage Collector
Introduction
Rubinius implements a Generational Garbage Collector (GC).
The Rubinus Generational GC manages the dynamic allocation and deallocation in
the heap space of a running Rubinius process.
Definitions
- We say that an object is alive if there is at least one structure
(variable) in the interpreter which references the object.
- When the Garbage Collector (GC) is run, this is called a collection.
- The number of times the GC has been run is called the number of GC cycles
or GC collections.
Object Life Cycle
- Nursery
- Young Generation
- Mature Generation
- Large Objects