aboutsummaryrefslogtreecommitdiff
path: root/ldo.h
diff options
context:
space:
mode:
authorRoberto I <roberto@inf.puc-rio.br>2025-12-13 16:16:59 -0300
committerRoberto I <roberto@inf.puc-rio.br>2025-12-13 16:16:59 -0300
commita5522f06d2679b8f18534fd6a9968f7eb539dc31 (patch)
tree65275619e7829b569bfb18dea624358aa17dbc91 /ldo.h
parent3d03ae5bd6314f27c8635e06ec363150c2c19062 (diff)
downloadlua-a5522f06d2679b8f18534fd6a9968f7eb539dc31.tar.gz
lua-a5522f06d2679b8f18534fd6a9968f7eb539dc31.tar.bz2
lua-a5522f06d2679b8f18534fd6a9968f7eb539dc31.zip
GC checks stack space before running finalizerHEADmaster
If the stack does not have some 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 2d4ca8be..b6472954 100644
--- a/ldo.h
+++ b/ldo.h
@@ -89,6 +89,7 @@ LUAI_FUNC int luaD_reallocstack (lua_State *L, int newsize, int raiseerror);
89LUAI_FUNC int luaD_growstack (lua_State *L, int n, int raiseerror); 89LUAI_FUNC int luaD_growstack (lua_State *L, int n, int raiseerror);
90LUAI_FUNC void luaD_shrinkstack (lua_State *L); 90LUAI_FUNC void luaD_shrinkstack (lua_State *L);
91LUAI_FUNC void luaD_inctop (lua_State *L); 91LUAI_FUNC void luaD_inctop (lua_State *L);
92LUAI_FUNC int luaD_checkminstack (lua_State *L);
92 93
93LUAI_FUNC l_noret luaD_throw (lua_State *L, TStatus errcode); 94LUAI_FUNC l_noret luaD_throw (lua_State *L, TStatus errcode);
94LUAI_FUNC l_noret luaD_throwbaselevel (lua_State *L, TStatus errcode); 95LUAI_FUNC l_noret luaD_throwbaselevel (lua_State *L, TStatus errcode);