[plt-scheme] PLT Scheme v370

From: Hans Oesterholt-Dijkema (hdnews at gawab.com)
Date: Fri May 25 04:06:48 EDT 2007

I don't really care if the memory of a scheme object gets moved,
if the GC also updates the pointers to this memory.

Will the GC do that (for all possible pointers)?

--Hans

Eli Barzilay schreef:
> On May 23, Hans Oesterholt-Dijkema wrote:
>   
>> So, If I'm using Scheme_Object * in my extensions, what
>> must I do to prevent them from being moved around?
>>     
>
> You use the xform thing (through mzc, I don't remember the details,
> sorry) and Scheme_Object* pointers will be moved when there's a GC and
> pointers adapted.  You need to be aware of this when handing off such
> pointers to other C code.
>
> If you don't want them to move you need to allocate them yourself
> (through the system's malloc).
>
>   



Posted on the users mailing list.