Garbage Collector - Rubinius
Author: Less Than Three. <3. http://less.thanthree.com
Description: Rubinius is an implementation of the Ruby programming language. The Rubinius bytecode virtual machine is written in C++. The bytecode compiler is written in pure Ruby. The vast majority of the core library is also written in Ruby, with some supporting primitives that interact with the VM directly.

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