Generational garbage collection: objects allocate in eden, survivors age through survivor spaces, long-lived objects are promoted to the old generation, and a write barrier records old-to-young pointers for minor collections.

Young gen (live)
0
Old gen (live)
0
Garbage
0
Phase
idle
young (age N)
old gen
garbage
write barrier (old→young)
YOUNG GENERATION OLD GENERATION
What's happening
Step 1