Cheney's algorithm: Difference between revisions

Content deleted Content added
Sample algorithm: specified end condition
bug fix in copy function
Line 65:
If o has no forwarding address
o' = allocPtr
allocPtr = allocPtr + size(rooto)
copy the contents of o to o'
forwarding-address(o) = o'