[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Order of weak ref removal and __gc
- From: Roberto Ierusalimschy <roberto@...>
- Date: Thu, 12 Aug 2010 10:09:04 -0300
> If I move the invocation of __gc from GCTM to luaC_separateudata, I
> get the desired behavior - but what implications does that have on the
> collector?
All finalizers will be called in the atomic phase, imparing the
"incrementability" of the collector.
But if you want someone to answer your questions, you should answer
their questions as well. I had asked you why do you need/want to keep in
your program a reference to an object that is going to die?
-- Roberto