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 /lstate.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 'lstate.h')
| -rw-r--r-- | lstate.h | 2 |
1 files changed, 1 insertions, 1 deletions
| @@ -395,7 +395,7 @@ union GCUnion { | |||
| 395 | 395 | ||
| 396 | LUAI_FUNC void luaE_setdebt (global_State *g, l_mem debt); | 396 | LUAI_FUNC void luaE_setdebt (global_State *g, l_mem debt); |
| 397 | LUAI_FUNC void luaE_freethread (lua_State *L, lua_State *L1); | 397 | LUAI_FUNC void luaE_freethread (lua_State *L, lua_State *L1); |
| 398 | LUAI_FUNC CallInfo *luaE_extendCI (lua_State *L); | 398 | LUAI_FUNC CallInfo *luaE_extendCI (lua_State *L, int err); |
| 399 | LUAI_FUNC void luaE_shrinkCI (lua_State *L); | 399 | LUAI_FUNC void luaE_shrinkCI (lua_State *L); |
| 400 | LUAI_FUNC void luaE_checkcstack (lua_State *L); | 400 | LUAI_FUNC void luaE_checkcstack (lua_State *L); |
| 401 | LUAI_FUNC void luaE_incCstack (lua_State *L); | 401 | LUAI_FUNC void luaE_incCstack (lua_State *L); |
