Question: In Example 8.52 we noted that reference counts can be used to reclaim tombstones, failing only when the programmer neglects to manually delete the object
In Example 8.52 we noted that reference counts can be used to reclaim tombstones, failing only when the programmer neglects to manually delete the object to which a tombstone refers. Explain how to leverage this observation to catch memory leaks at run time. Does your solution work in all cases? Explain.
Step by Step Solution
3.46 Rating (178 Votes )
There are 3 Steps involved in it
If the reference count in a tombstone goes to zero but the object to which ... View full answer
Get step-by-step solutions from verified subject matter experts
