This commit is contained in:
Justin Ethier 2016-01-21 22:35:54 -05:00
parent 6416d84f10
commit e6bda758f1

View file

@ -160,6 +160,8 @@ During a GC cycle the collector thread transitions through the following states:
### Clear
The collector swaps the values of the clear color (white) and the mark color (black). This is more efficient than modifying the color on each object in the heap. The collector then transitions to sync 1.
<img src="images/gc-graph-clear.png" alt="Initial object graph">
### Mark
The collector transitions to sync 2 and then async. At this point it marks the global variables and waits for the mutators to also transition to async.