[Gc] Switching the atomic property of an object

Andy Wingo wingo at pobox.com
Thu Jun 14 09:28:16 PDT 2012


On Thu 14 Jun 2012 02:40, Alex Rønne Petersen <xtzgzorex at gmail.com> writes:

> In my virtual machine where I'm using libgc, every object has a header
> that contains a potential pointer into GC-allocated memory.

Depending on how often this pointer exists, and if you do other things
with finalizers, you might be able to keep the pointer alive using
finalizers.  The pointer could be the data associated with the
finalizer, regardless of whether it is in the object or not.

Dunno, just a thought :)

Andy
-- 
http://wingolog.org/



More information about the Gc mailing list