Concurrent mark-sweep: the collector runs in parallel with the program on a separate thread, with brief stop-the-world initial-mark and remark phases, write barriers, and floating garbage.
Gray (queue)
0
Black (marked)
0
Floating garbage
0
Phase
idle
1 · Full CMS cycle
2 · Floating garbage
white
gray
black
floating garbage
stop-the-world
concurrent (parallel)
SHARED HEAP
TIMELINE (parallel threads)
What's happening
Prev
Next step
Auto
Restart
Step 1