[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Error in a coroutine preventing garbage collection?
- From: Shmuel Zeigerman <shmuz@...>
- Date: Wed, 25 Sep 2013 22:02:33 +0300
On 25/09/2013 21:47, Guillermo Gijón wrote:
I'm having trouble with some objects not being garbage collected when
they're referenced inside a coroutine that errors (all other
references to them being weak).
Here are two variations of the minimal reproducible example, tested on
Lua 5.1.4, Lua 5.2.1, LuaJIT 2.0.2 and LuaJIT 2.1:
Could you point me, please, what am I missing here? Why aren't these
objects collected when the only strong reference to them is a local
variable or argument inside a dead coroutine?
Should be __mode = "k"