Comment on Conservative GC can be faster than precise GCparentComments−sfink2yYou can still compact with a conservative scanner, you just have to accommodate pinned regions.−themk2yHow do you compact with conservative GC? You can't change the pointer values because they might not be pointers right?−dzaima2yAny object which is referenced by the stack cannot be moved, but the rest of the heap (i.e. the vast majority, assuming the stack is much smaller than the heap) still can.
Comments
You can still compact with a conservative scanner, you just have to accommodate pinned regions.
How do you compact with conservative GC? You can't change the pointer values because they might not be pointers right?
Any object which is referenced by the stack cannot be moved, but the rest of the heap (i.e. the vast majority, assuming the stack is much smaller than the heap) still can.