Expand description
Mark-sweep garbage collection.
Spike 3 extends spike 2’s reachability rules with two new edges:
- From any
Value::Object, every property value is reachable. - From any
Value::ObjectwithSome(prototype), the prototype address is reachable.
Both edges are pure-functional traversals identical in shape to the
reference edge: gather addresses into an immutable BTreeSet, then
delegate sweeping to Heap::retain.