lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On 16 July 2018 at 19:50, Jay Carlson <> wrote:
> On 2018-07-16, at 1:54 PM, Roberto Ierusalimschy <> wrote:
>> However, a main issue of any "deterministic cleanup" in Lua is its
>> interaction with coroutines. A coroutine can enter a block and never
>> leave it.
> Yeah, last time the proposal was, "Don't let that happen, and if you do, at least the garbage collector will get to it eventually."

I am not sure if this is a problem? If you think of coroutine as a new
thread with its own stack, then any cleanup in the original thread
need not be called unless the coroutine returned to the original
thread.  Have I missed the point here?