[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: finalizers for weak values
- From: Roberto Ierusalimschy <roberto@...>
- Date: Wed, 17 Oct 2012 09:43:20 -0300
> I notice that if I explicitly call collectgarbage() then the behavior
> matches what I expect based on the reference manual:
>
> __gc table: 0x635950
> found in weak table: nil
>
> So maybe this is just an issue with the final collection of all remaining
> objects at the program's end.
Yes. When a program ends, it does not perform a garbage collection.
Instead, it first calls the finalizers of all live objects and then
releases all objects.
-- Roberto