[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Blocking calls and module composability
- From: Andrew Gierth <andrew@...>
- Date: Sun, 26 Jan 2020 10:26:22 +0000
>>>>> "Sean" == Sean Conner <sean@conman.org> writes:
Sean> The Lua call stack and C call stack are two separate things.
Sean> The Lua VM does not use longjmp() to implement coroutines [a][d].
In 5.4, the VM recurses on the C stack, so it does indeed use longjmp as
part of yield().
https://github.com/lua/lua/blob/1fb4d539254b67e7e35ed698250c66d1edff0e08/ldo.c#L729
--
Andrew.