[Gc] Partially scanning a VM's call stack

Juan Jose Garcia-Ripoll juanjose.garciaripoll at googlemail.com
Tue Aug 18 07:35:06 PDT 2009


Have a look at how ECL does it

http://ecls.git.sourceforge.net/git/gitweb.cgi?p=ecls/ecl;a=blob;f=src/c/alloc_2.d;h=7aad2230ceaf5cd31925b3e3414ee2f37505c459;hb=HEAD

More precisely, the function stacks_scanner() and ecl_mark_env(),
which tells the garbage collector which portions of the lisp
environment and interpreter stacks are to be scanned.

Juanjo

On Tue, Aug 18, 2009 at 4:15 PM, Ludovic Courtès<ludo at gnu.org> wrote:
> Hello,
>
> Guile's new VM uses an alternate stack for bytecode that's evaluated.
> As with the C stack, the GC should not scan the stack below its current
> bottom; failing to do so may lead to excess data retention.
>
> What's the best way to handle this?  Are there other options than
> zeroing the stack bottom once in a while?
>
> Thanks,
> Ludo'.
>
> _______________________________________________
> Gc mailing list
> Gc at linux.hpl.hp.com
> http://www.hpl.hp.com/hosted/linux/mail-archives/gc/
>



-- 
Instituto de Física Fundamental, CSIC
c/ Serrano, 113b, Madrid 28006 (Spain)
http://juanjose.garciaripoll.googlepages.com



More information about the Gc mailing list