Please note that the content of this book primarily consists of articles
available from Wikipedia or other free sources online. In computer
science, unreachable memory is a block of memory allocated dynamically
where the program that allocated the memory no longer has any reachable
pointer that refers to it. Similarly, an unreachable object is a
dynamically allocated object that has no reachable reference to it.
Informally, unreachable memory is dynamic memory that the program can
not reach directly, nor get to by starting at an object it can reach
directly, and then following a chain of pointer references.In dynamic
memory allocation implementations that employ a garbage collector,
objects are reclaimed after they become unreachable. The garbage
collector is able to determine if an object is reachable; any object
that is determined to no longer be reachable can be deallocated. Many
programming languages (for example, Java, C#, D, Dylan) use automatic
garbage collection.