aboutsummaryrefslogtreecommitdiff
path: root/ldo.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 /ldo.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 'ldo.h')
-rw-r--r--ldo.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/ldo.h b/ldo.h
index 4de9540e..4c8db865 100644
--- a/ldo.h
+++ b/ldo.h
@@ -80,6 +80,7 @@ LUAI_FUNC int luaD_reallocstack (lua_State *L, int newsize, int raiseerror);
80LUAI_FUNC int luaD_growstack (lua_State *L, int n, int raiseerror); 80LUAI_FUNC int luaD_growstack (lua_State *L, int n, int raiseerror);
81LUAI_FUNC void luaD_shrinkstack (lua_State *L); 81LUAI_FUNC void luaD_shrinkstack (lua_State *L);
82LUAI_FUNC void luaD_inctop (lua_State *L); 82LUAI_FUNC void luaD_inctop (lua_State *L);
83LUAI_FUNC int luaD_checkminstack (lua_State *L);
83 84
84LUAI_FUNC l_noret luaD_throw (lua_State *L, int errcode); 85LUAI_FUNC l_noret luaD_throw (lua_State *L, int errcode);
85LUAI_FUNC int luaD_rawrunprotected (lua_State *L, Pfunc f, void *ud); 86LUAI_FUNC int luaD_rawrunprotected (lua_State *L, Pfunc f, void *ud);