diff options
| author | Roberto I <roberto@inf.puc-rio.br> | 2026-07-22 14:42:55 -0300 |
|---|---|---|
| committer | Roberto I <roberto@inf.puc-rio.br> | 2026-07-22 14:42:55 -0300 |
| commit | 8511e90b7df5daf139aba290b9c9c1595927e7b3 (patch) | |
| tree | c785e4595f212d9972fe9f40d2bb58a980a9257b /ldo.h | |
| parent | 0f781f836ab348716eb9232d3831a871b9821a3c (diff) | |
| download | lua-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.h | 1 |
1 files changed, 1 insertions, 0 deletions
| @@ -80,6 +80,7 @@ LUAI_FUNC int luaD_reallocstack (lua_State *L, int newsize, int raiseerror); | |||
| 80 | LUAI_FUNC int luaD_growstack (lua_State *L, int n, int raiseerror); | 80 | LUAI_FUNC int luaD_growstack (lua_State *L, int n, int raiseerror); |
| 81 | LUAI_FUNC void luaD_shrinkstack (lua_State *L); | 81 | LUAI_FUNC void luaD_shrinkstack (lua_State *L); |
| 82 | LUAI_FUNC void luaD_inctop (lua_State *L); | 82 | LUAI_FUNC void luaD_inctop (lua_State *L); |
| 83 | LUAI_FUNC int luaD_checkminstack (lua_State *L); | ||
| 83 | 84 | ||
| 84 | LUAI_FUNC l_noret luaD_throw (lua_State *L, int errcode); | 85 | LUAI_FUNC l_noret luaD_throw (lua_State *L, int errcode); |
| 85 | LUAI_FUNC int luaD_rawrunprotected (lua_State *L, Pfunc f, void *ud); | 86 | LUAI_FUNC int luaD_rawrunprotected (lua_State *L, Pfunc f, void *ud); |
