Saturday 19 July 2014

Mark-Compacting Approach

Mark Compacting approach combines Mark-sweeping and copying in a way that to solve the drawback of requiring twice as much memory in copying collectors. First, reachable objects are marked, then a compacting step relocates the reachable (marked) objects towards the beginning of the heap area. So all the live objects are at the beginning of heap area. 




Prevoius                                                 Next                                                 Home

No comments:

Post a Comment