[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: |
Thu, 29 Jan 2009 12:56:13 +0100 |
On Thu, Jan 29, 2009 at 9:41 AM, Jim Ursetto <address@hidden> wrote:
> On Mon, Dec 22, 2008 at 3:03 AM, felix winkelmann <address@hidden> wrote:
>> Please try this [finalizer patch].
>
> Hi. 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.
>
> On Version 3.4.10 - SVN rev. 13079 - macosx-unix-gnu-x86
> and Version 4.0.0x5 - SVN rev. 13079 - macosx-unix-gnu-x86
>
> #;1> (let ((abc (vector 5))) (set-finalizer! abc (lambda (x) (print
> "final"))) (void))
> #;2> (gc #t)
> 142744
>
> On Version 3.3.10 - SVN rev. 11733 - macosx-unix-gnu-x86,
> and on 4.0.0x5 rev. 13079 with reversed runtime.c patch:
>
> #;1> (let ((abc (vector 5))) (set-finalizer! abc (lambda (x) (print
> "final"))) (void))
> #;2> (gc #t)
> final ; right
> 139240
>
Hi, Jim!
Is the behaviour identical for compiled code?
cheers,
felix