From a63768aa644abd0fad546cc41380816dd33be906 Mon Sep 17 00:00:00 2001 From: Justin Ethier Date: Tue, 19 Jan 2016 22:51:32 -0500 Subject: [PATCH] WIP --- docs/Garbage-Collector.md | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/docs/Garbage-Collector.md b/docs/Garbage-Collector.md index 323a26a1..f999afd8 100644 --- a/docs/Garbage-Collector.md +++ b/docs/Garbage-Collector.md @@ -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: