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.)
This commit is contained in:
2
lgc.c
2
lgc.c
@@ -917,7 +917,7 @@ static void GCTM (lua_State *L) {
|
||||
L->allowhook = oldah; /* restore hooks */
|
||||
g->gcstp = oldgcstp; /* restore state */
|
||||
if (l_unlikely(status != LUA_OK)) { /* error while running __gc? */
|
||||
luaE_warnerror(L, "__gc metamethod");
|
||||
luaE_warnerror(L, "__gc");
|
||||
L->top--; /* pops error object */
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user