Update Garbage-Collector-Revised-2022.md

This commit is contained in:
Justin Ethier 2022-12-12 16:29:40 -05:00 committed by GitHub
parent 1ee14831e7
commit 7164df49b1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -215,12 +215,12 @@ Lazy sweeping is discussed here in the first major GC section as it impacts most
An object can be marked using any of the following colors to indicate the status of its memory: An object can be marked using any of the following colors to indicate the status of its memory:
- Blue - Unallocated memory. - :large_blue_circle: - Blue - Unallocated memory.
- Red - An object on the stack. - :red_circle: - Red - An object on the stack.
- White - Heap memory that has not been scanned by the collector. - :white_circle: - White - Heap memory that has not been scanned by the collector.
- Gray - Objects marked by the collector that may still have child objects that must be marked. - :radio_button: - Gray - Objects marked by the collector that may still have child objects that must be marked.
- Black - Objects marked by the collector whose immediate child objects have also been marked. - :black_circle: - Black - Objects marked by the collector whose immediate child objects have also been marked.
- Purple - Garbage objects on the heap that have not yet been reclaimed due to lazy sweeping. - :purple_circle: - Purple - Garbage objects on the heap that have not yet been reclaimed due to lazy sweeping.
### Tri-Color Invariant ### Tri-Color Invariant