Garbage Collection - Stanford University
Reference Counting A simple framework for garbage collection. Though it has several serious weaknesses! Idea: Store in each object a reference count (refcount) tracking how many references exist to the object. Creating a reference to an object increments its refcount. Removing a reference to an object decrement