Re: [Chicken-users] Question about gc-roots

2014-03-16 Thread Jörg F. Wittenberger
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,

Re: [Chicken-users] Question about gc-roots

2014-03-16 Thread Peter Bex
On Sun, Mar 16, 2014 at 03:00:20PM +0100, Jörg F. Wittenberger wrote: According to the manual, finalizers are only supported for non-immediate objects anyway: Yeah, but note that Pluijzer's test was with *string constants*. Those are not immediate (but because they're constants, they're not

Re: [Chicken-users] Question about gc-roots

2014-03-14 Thread Peter Bex
On Thu, Mar 13, 2014 at 12:44:44PM +0100, pluijzer . wrote: I am assigning non-immediate objects to foreign void pointers. To prevent them from moving during garbage collection I turn the pointer into a gc-root. This works like I expect it would work, with one exception: It seems that the

[Chicken-users] Question about gc-roots

2014-03-13 Thread pluijzer .
I am assigning non-immediate objects to foreign void pointers. To prevent them from moving during garbage collection I turn the pointer into a gc-root. This works like I expect it would work, with one exception: It seems that the finalizers of the objects assigned to the objects inside the