Garbage Collection
From Suhrid.net Wiki
Jump to navigationJump to searchIntroduction
- 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.