chicken-users
[Top][All Lists]
Advanced

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

Re: [Chicken-users] Returning a scheme object inside another


From: felix winkelmann
Subject: Re: [Chicken-users] Returning a scheme object inside another
Date: Thu, 24 Nov 2005 07:53:40 +0100

On 11/23/05, Thomas Chust <address@hidden> wrote:
> >
> > It does so, but lazily - it schedules this slot to be marked at the next
> > minor
> > garbage collection.
> > [...]
>
> Ah! But the only way to trigger a minor garbage collection is to longjmp
> back to the trampoline, right?

Exactly. The GC (C_reclaim) does the longjmp, though, after evicting/extracting
live data.

>
> Of course stack allocation is preferrable because it is really fast, but
> out of curiosity, is there any way to explicitly allocate a garbage
> collected block on the heap?

Currently not. The problem here is that the heap may be out of free space
at any given time and a garbage collection might pull the rug under
pending Scheme execution contexts.


cheers,
felix




reply via email to

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