[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Chicken-users] newbie: questions about set-finalizer!
From: |
felix winkelmann |
Subject: |
Re: [Chicken-users] newbie: questions about set-finalizer! |
Date: |
Fri, 13 Feb 2009 14:31:22 +0100 |
On Thu, Jan 29, 2009 at 9:01 PM, Jim Ursetto <address@hidden> wrote:
> On Thu, Jan 29, 2009 at 5:56 AM, felix winkelmann <address@hidden> wrote:
>> On Thu, Jan 29, 2009 at 9:41 AM, Jim Ursetto <address@hidden> wrote:
>>> I am seeing finalizers fail to execute on recent SVN and I think
>>> it is the result of this change. I backed out the patch and it works
>>> okay again.
>
>> Is the behaviour identical for compiled code?
>
> No, it works correctly for compiled code. They trigger immediately
> after (gc #t).
>
> In interpreted code, the finalizers do not trigger at all, even when
> you exit csi via (exit).
>
Hm... I think this is related to the fact, that interpreter environments
are managed differently (the closure representation in the interpreter
is a simple linked list of environments, so it is possible that more indirect
references to finalizers are left. But this should work. Have to investigate.
cheers,
felix
- Re: [Chicken-users] newbie: questions about set-finalizer!,
felix winkelmann <=