Question 0-1

Describe the purpose of the tombstone in the context of the copy collection technique for garbage collection.

Solution

In the course of copy collection, the garbage collector moves useful memory allocations to other regions of memory. Since other objects may still have pointers to the old location, the system must somehow keep a placeholder, called a tombstone, saying to where the allocation has moved.

Back to Exam Review 0