Incremental garbage collection: tri-color marking split into small slices interleaved with the program on a timeline, with a write barrier preserving correctness across the gaps.

White
0
Gray (queue)
0
Black
0
Now running
idle
white
gray
black
mutator slice
GC slice
barrier
HEAP GRAY QUEUE TIMELINE (left → right = time)
What's happening
Step 1