Re: [Gc] Partially scanning a VM's call stack

Ivan Maidanski ivmai at mail.ru
Tue Aug 18 07:40:32 PDT 2009


Hi!

ludo at gnu.org (Ludovic CourtХs) 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'.

If staxk grows up: use GCJ length-based descriptor (in this case it should be VM "stack" pointer).

Other possible solution (including stack grows down): GC_DS_PROC.

Bye.


More information about the Gc mailing list