Difference between revisions of "Garbage Collection"
From Suhrid.net Wiki
Jump to navigationJump to search (Created page with "== Introduction == * All GC involves in making sure the heap doesnt run out of space. * Purpose of the GC is to find and delete objects that cannot be reached. * An object is el...") |
|||
Line 4: | Line 4: | ||
* Purpose of the GC is to find and delete objects that cannot be reached. | * Purpose of the GC is to find and delete objects that cannot be reached. | ||
* An object is eligible to be garbage collected when no live thread can access it. | * An object is eligible to be garbage collected when no live thread can access it. | ||
+ | |||
+ | == Ways in which Objects can be GC'ed == | ||
+ | |||
+ | * Nulling a reference. | ||
+ | * Reassigning a reference. | ||
+ | * Isolating a reference. |
Revision as of 04:43, 15 August 2011
Introduction
- All GC involves in making sure the heap doesnt run out of space.
- Purpose of the GC is to find and delete objects that cannot be reached.
- An object is eligible to be garbage collected when no live thread can access it.
Ways in which Objects can be GC'ed
- Nulling a reference.
- Reassigning a reference.
- Isolating a reference.