[M3devel] GC question

Neil T. Dantam ndantam at purdue.edu
Mon Jan 14 22:09:30 CET 2008


Mika Nystrom wrote:
> It would have to be able to return an error, no?  If there's
> an ambiguous root pointing to the object...

If you have a reference to the object that you are reallocating which
you must pass to this procedure, then you have a reference on the stack
creating an ambiguous root.

Also, the GC doesn't just pin objects, it pins entire pages because
there may be a derived pointer referring to some object in that page.
So if your object to reallocate is on the same page as anything
referenced from the stack, you couldn't automatically update pointers.

Now if you only want to update pointers in heap, maybe there's a way to
make that work.


-- 
Neil T. Dantam



More information about the M3devel mailing list