[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: state of the Lua nation on resource cleanup
- From: Roberto Ierusalimschy <roberto@...>
- Date: Thu, 19 Feb 2009 12:25:15 -0300
>>> Do upvalues get processed when a coroutine gets collected?
>>
>> Currently no.
>
> Does a closure keep the coroutine in which it was created from being
> collected? If not, then isn't there a problem if upvalues don't get
> closed when the coroutine gets collected? Or maybe we miscommunicated
> since I failed to say "closed" in my earlier message.
I understood what you said, the wrong answer was all my fault; sorry.
upvalues *do* get closed when a coroutine gets collected (see
'luaE_freethread'). (Otherwise, as you said, there would be problems.)
-- Roberto
- References:
- Re: state of the Lua nation on resource cleanup, John Belmonte
- Re: state of the Lua nation on resource cleanup, Roberto Ierusalimschy
- Re: state of the Lua nation on resource cleanup, Fabien
- Re: state of the Lua nation on resource cleanup, Roberto Ierusalimschy
- Re: state of the Lua nation on resource cleanup, Asko Kauppi
- Re: state of the Lua nation on resource cleanup, Roberto Ierusalimschy
- Re: state of the Lua nation on resource cleanup, Asko Kauppi
- Re: state of the Lua nation on resource cleanup, Mark Hamburg
- Re: state of the Lua nation on resource cleanup, Roberto Ierusalimschy
- Re: state of the Lua nation on resource cleanup, Mark Hamburg