This commit is contained in:
Justin Ethier 2016-01-19 22:51:32 -05:00
parent 37b3891868
commit a63768aa64

View file

@ -4,8 +4,15 @@
- [Introduction](#introduction)
- [Terms](#terms)
- [Data Structures](#data-structures)
- [Heap](#heap)
- [Thread Data](#thread-data)
- [Minor Collection](#minor-collection)
- [Major Collection](#major-collection)
- [Collection Cycle](#collection-cycle)
- [Mutator Functions](#mutator-functions)
- [Cooperation](#cooperation)
- [Considerations](#considerations)
- [Limitations and Looking Ahead](#limitations-and-looking-ahead)
- [Further Reading](#further-reading)
@ -81,8 +88,6 @@ Finally, although not mentioned in Baker's paper, a heap object can be modified
# Major Collection
## Overview
A single heap is used to store objects relocated from the various thread stacks. Eventually the heap will run too low on space and a collection is required to reclaim unused memory. The collector thread is used to perform a major GC with cooperation from the mutator threads.
Each object is assigned a color to indicate the status of its memory: