aboutsummaryrefslogtreecommitdiff
path: root/lstate.h
diff options
context:
space:
mode:
authorRoberto I <roberto@inf.puc-rio.br>2026-07-22 14:42:55 -0300
committerRoberto I <roberto@inf.puc-rio.br>2026-07-22 14:42:55 -0300
commit8511e90b7df5daf139aba290b9c9c1595927e7b3 (patch)
treec785e4595f212d9972fe9f40d2bb58a980a9257b /lstate.h
parent0f781f836ab348716eb9232d3831a871b9821a3c (diff)
downloadlua-8511e90b7df5daf139aba290b9c9c1595927e7b3.tar.gz
lua-8511e90b7df5daf139aba290b9c9c1595927e7b3.tar.bz2
lua-8511e90b7df5daf139aba290b9c9c1595927e7b3.zip
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.
Diffstat (limited to 'lstate.h')
-rw-r--r--lstate.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lstate.h b/lstate.h
index 007704c8..97bb3e8f 100644
--- a/lstate.h
+++ b/lstate.h
@@ -395,7 +395,7 @@ union GCUnion {
395 395
396LUAI_FUNC void luaE_setdebt (global_State *g, l_mem debt); 396LUAI_FUNC void luaE_setdebt (global_State *g, l_mem debt);
397LUAI_FUNC void luaE_freethread (lua_State *L, lua_State *L1); 397LUAI_FUNC void luaE_freethread (lua_State *L, lua_State *L1);
398LUAI_FUNC CallInfo *luaE_extendCI (lua_State *L); 398LUAI_FUNC CallInfo *luaE_extendCI (lua_State *L, int err);
399LUAI_FUNC void luaE_shrinkCI (lua_State *L); 399LUAI_FUNC void luaE_shrinkCI (lua_State *L);
400LUAI_FUNC void luaE_checkcstack (lua_State *L); 400LUAI_FUNC void luaE_checkcstack (lua_State *L);
401LUAI_FUNC void luaE_incCstack (lua_State *L); 401LUAI_FUNC void luaE_incCstack (lua_State *L);