[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Finalisation of userdata in weak-valued tables
- From: Joshua Phillips <jp.sittingduck@...>
- Date: Fri, 31 Dec 2010 16:40:17 +0000
On Fri 31/Dec/2010, Roberto Ierusalimschy wrote:
> > [...]
>
> If I understood correctly, this behaviour is not expected. The GC really
> decides at some point that the proxy is no longer reachable and delays
> the call to the finalizer until later. But it clears the weak tables
> atomically with the decision, so the userdata should be removed as soon
> as the GC decides to finalize it, before the finalization. What are
> the keys in that weak table?
>
> -- Roberto
>
The keys are just strings.