Garbage Collection

From Suhrid.net Wiki
Revision as of 04:43, 15 August 2011 by Suhridk (talk | contribs)
Jump to navigationJump to search

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.