[Top][All Lists]

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

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

From: Thomas Chust
Subject: Re: [Chicken-users] Returning a scheme object inside another
Date: Wed, 23 Nov 2005 13:51:57 -0000
User-agent: Opera M2/8.02 (MacPPC, build 2148)

Am 23.11.2005, 12:40 Uhr, schrieb felix winkelmann <address@hidden>:

On 11/23/05, Thomas Chust <address@hidden> wrote:

By the way, could someone perhaps explain me what exactly C_mutate does?
I played around with it a little and found that I have apparently totally
misunderstood the documentation -- I thought that it would cause stack
allocated objects to be copied into heap when the mutated slot was in the
heap itself.

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?

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?

Thanks for the info,

reply via email to

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