Basic Techniques (cont.)
Copying Garbage Collection
- moves all live objects into one area
- rest of heap is then available
- integration of data traversal and copying process
- Example: semispace collector
- heap is divided into two contiguous semispaces
- only one is in use
- GC copies live data to other semispace