Garbage Collection
Mark-Sweep
Reference Counting
Generational
Allocate Object
Run GC
Drop Reference
Reset
Mark-Sweep: trace from roots, mark reachable, sweep unmarked. Ref counting: free when count reaches 0 (cannot handle cycles). Generational: young/old generations.