From 8511e90b7df5daf139aba290b9c9c1595927e7b3 Mon Sep 17 00:00:00 2001 From: Roberto I Date: Wed, 22 Jul 2026 14:42:55 -0300 Subject: Bug: GC checks stack space before running finalizer If some stack does not have a minimum available space, the GC defers calling a finalizer until the next cycle. That avoids errors while running a finalizer that the programmer cannot control. --- lstate.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lstate.h') diff --git a/lstate.h b/lstate.h index 007704c8..97bb3e8f 100644 --- a/lstate.h +++ b/lstate.h @@ -395,7 +395,7 @@ union GCUnion { LUAI_FUNC void luaE_setdebt (global_State *g, l_mem debt); LUAI_FUNC void luaE_freethread (lua_State *L, lua_State *L1); -LUAI_FUNC CallInfo *luaE_extendCI (lua_State *L); +LUAI_FUNC CallInfo *luaE_extendCI (lua_State *L, int err); LUAI_FUNC void luaE_shrinkCI (lua_State *L); LUAI_FUNC void luaE_checkcstack (lua_State *L); LUAI_FUNC void luaE_incCstack (lua_State *L); -- cgit v1.2.3-55-g6feb