Re: [Gc] Creating stack-like memory containing GC roots

Basile Starynkevitch <[email protected]> Wed, 23 Sep 2015 23:08:59 +0200
Newsgroups gmane.comp.programming.garbage-collection.boehmgc
Message-ID <[email protected]>
On 09/23/2015 09:52 PM, Christian Schafmeister wrote:
> I’ve written a Common Lisp compiler that uses LLVM as the backend and that interoperates with C++.
>
> I’m using the Boehm garbage collector and I need to create a stack alongside the regular C++ stack that holds GC roots.
>



Just use a regular GC-ed zone, but don't forget to grow it (by copying 
it to a greater zone when needed) and to clear the popped values. Use 
offsets, not pointers, into that zone.

Regards.

-- 
Basile STARYNKEVITCH         http://starynkevitch.net/Basile/
email: basile<at>starynkevitch<dot>net mobile: +33 6 8501 2359
8, rue de la Faiencerie, 92340 Bourg La Reine, France
*** opinions {are only mine, sont seulement les miennes} ***
_______________________________________________
bdwgc mailing list
[email protected]
https://lists.opendylan.org/mailman/listinfo/bdwgc