[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Userdata finalization order
- From: Francesco Abbate <francesco.bbt@...>
- Date: Sun, 17 Oct 2010 18:05:08 +0200
2010/10/17 Javier Guerra Giraldez <javier@guerrag.com>:
> is that true?
>
> what i would expect is that "a" is unreachable, but GC considers "b"
> reachable by "a", even if "a" isn't, so "b" would only be collected
> after "a" (in a different GC cycle)
I was thinking like you before discovering that it is not actually the
case. I've actually experienced this problem and it took me some time
to find it.
See this thread http://lua-users.org/lists/lua-l/2010-08/msg00024.html
and the answer of Benoit Germain.
--
Francesco