diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2021-12-14 12:50:05 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2021-12-14 12:50:05 -0300 |
commit | 066e0f93c4901e601d93e31fb700f8f66f95feb8 (patch) | |
tree | 8b7464bbc4bbe12db97eb34f3b28874caffd1411 /lgc.c | |
parent | 0bfc572e51d9035a615ef6e9523f736c9ffa8e57 (diff) | |
download | lua-066e0f93c4901e601d93e31fb700f8f66f95feb8.tar.gz lua-066e0f93c4901e601d93e31fb700f8f66f95feb8.tar.bz2 lua-066e0f93c4901e601d93e31fb700f8f66f95feb8.zip |
Fix debug information about finalizers
The flag CIST_FIN does not mark a finalizer, but the function that was
running when the finalizer was called. (So, the function did not call
the finalizer, but it looks that way in the stack.)
Diffstat (limited to 'lgc.c')
-rw-r--r-- | lgc.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -917,7 +917,7 @@ static void GCTM (lua_State *L) { | |||
917 | L->allowhook = oldah; /* restore hooks */ | 917 | L->allowhook = oldah; /* restore hooks */ |
918 | g->gcstp = oldgcstp; /* restore state */ | 918 | g->gcstp = oldgcstp; /* restore state */ |
919 | if (l_unlikely(status != LUA_OK)) { /* error while running __gc? */ | 919 | if (l_unlikely(status != LUA_OK)) { /* error while running __gc? */ |
920 | luaE_warnerror(L, "__gc metamethod"); | 920 | luaE_warnerror(L, "__gc"); |
921 | L->top--; /* pops error object */ | 921 | L->top--; /* pops error object */ |
922 | } | 922 | } |
923 | } | 923 | } |