Content deleted Content added
No edit summary |
mNo edit summary |
||
Line 2:
Cheney's algorithm reclaims items as follows:
* '''
** If the object has not yet been moved to the to-space, this is done by creating an identical copy in the to-space, and then replacing the from-space version with a forwarding pointer to the to-space copy. Then update the object reference to refer to the new version in to-space.
** If the object has already been moved to the to-space, simply update the reference from the forwarding pointer in from-space.
* '''Objects
Once all to-space references have been examined and updated, garbage collection is complete.
|