1.2.3

## Garbage Collector

This topic has missing or partial documentation. Please help us improve it.

See How-To - Write Documentation

## 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

1. We say that an object is alive if there is at least one structure (variable) in the interpreter which references the object.
2. When the Garbage Collector (GC) is run, this is called a collection.
3. The number of times the GC has been run is called the number of GC cycles or GC collections.

## Object Life Cycle

1. Nursery
2. Young Generation
3. Mature Generation
4. Large Objects