[M3devel] GC question

Tony Hosking hosking at cs.purdue.edu
Mon Jan 14 22:17:46 CET 2008


PS Yes, if there is an ambiguous root pointing at the object then you  
are stuck.

On Jan 14, 2008, at 3:53 PM, Mika Nystrom wrote:

> It would have to be able to return an error, no?  If there's
> an ambiguous root pointing to the object...
>
>
> Darko writes:
>> Tony,
>>
>> I imagine you're intimately familiar with the garbage collector
>> implementation. If I wanted to implement a 'reallocate' function that
>> preserved references to an object although the object was  
>> reallocated,
>> ie change all existing references from the old object to the new
>> object, would this be straight forward using the code of the current
>> GC implementation? Is there any existing function that might do
>> something like this already?
>>
>> Thanks,
>> Darko.




More information about the M3devel mailing list