next up previous contents index
Next: Messages and Statistics Up: Garbage Collection in the Prop Library Previous: Memory Allocation

The GC Protocol

The collector and collectable objects must cooperate with each other by abiding to a simple protocol:

This protocol can be used by both copying and non-copying collectors. In addition, the class GCVerifier  also uses this protocol to walk the heap in order to verify the integrity of a garbage collected data structure.



Allen Leung
Mon Apr 7 14:33:55 EDT 1997