guile-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: static variables with scheme objects


From: Marius Vollmer
Subject: Re: static variables with scheme objects
Date: 19 Jul 2003 00:34:14 +0200
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3

address@hidden (Paul Jarc) writes:

> sig <address@hidden> wrote:
> > global_list =
> > scm_permanent_object(scm_list_2(make_giant_smob1(),
> >                                 make_giant_smob2()));
> >
> > make_giant_smob2() runs and creates a smob. Then
> > make_giant_smob1() runs and it doesn't have enough memory to
> > create it, so it runs the gc, which finds smob2 without
> > references,
> 
> At this point, smob2 is referenced from the C stack, I think.

Correct again.

-- 
GPG: D5D4E405 - 2F9B BCCC 8527 692A 04E3  331E FAF8 226A D5D4 E405




reply via email to

[Prev in Thread] Current Thread [Next in Thread]