Skip to Content

Garbage Collector

Mark reachable objects from the Roots and Sweep the orphans to free memory.

Heap: 0%
Score: 0
Click Gold Roots to Mark
?

How to Play

1.

The system creates objects in the young generation.

2.

Golden spheres are ROOTS - they are always reachabe.

3.

Click ROOTS to 'Mark' all reachable objects.

4.

Objects that aren't marked are 'Garbage'.

5.

Run SWEEP to collect garbage and free head space.

6.

If the Heap reaches 100 objects, the system crashes (OOM)!

Controls

MarkClick Root
SweepButton
Right ClickOrbit
Toggle ImmersiveF