[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Chicken-users] Question about gc-roots
From: |
Jörg F. Wittenberger |
Subject: |
Re: [Chicken-users] Question about gc-roots |
Date: |
Sun, 16 Mar 2014 15:00:20 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux armv7l; rv:17.0) Gecko/20131104 Icedove/17.0.10 |
Am 14.03.2014 22:23, schrieb Peter Bex:
On Thu, Mar 13, 2014 at 12:44:44PM +0100, pluijzer . wrote:
...
Hello Pluijzer, I had a look at the GC again, and from what I can make
of it, this happens only for constants (objects that do not live in
the stack or heap).
According to the manual, finalizers are only supported for non-immediate
objects anyway:
<procedure>(set-finalizer! X PROC)</procedure>
Registers a procedure of one argument {{PROC}}, that will be
called as soon as the non-immediate data object {{X}} is about to
be garbage-collected (with that object as its argument). Note that
the finalizer will '''not''' be called while interrupts are disabled.
This procedure returns {{X}}.