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
1 · Promotion lifecycle
2 · Old → young pointer
3 · Major collection
young (age N)
old gen
garbage
write barrier (old→young)
YOUNG GENERATION
OLD GENERATION
What's happening
Prev
Next step
Auto
Restart
Step 1