diff options
Diffstat (limited to 'lgc.c')
-rw-r--r-- | lgc.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lgc.c,v 2.236 2017/10/31 15:29:28 roberto Exp roberto $ | 2 | ** $Id: lgc.c,v 2.236 2017/10/31 15:29:28 roberto Exp $ |
3 | ** Garbage Collector | 3 | ** Garbage Collector |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -866,9 +866,9 @@ static void GCTM (lua_State *L, int propagateerrors) { | |||
866 | setobj2s(L, L->top, tm); /* push finalizer... */ | 866 | setobj2s(L, L->top, tm); /* push finalizer... */ |
867 | setobj2s(L, L->top + 1, &v); /* ... and its argument */ | 867 | setobj2s(L, L->top + 1, &v); /* ... and its argument */ |
868 | L->top += 2; /* and (next line) call the finalizer */ | 868 | L->top += 2; /* and (next line) call the finalizer */ |
869 | callstatus(L->func) |= CIST_FIN; /* will run a finalizer */ | 869 | L->ci->callstatus |= CIST_FIN; /* will run a finalizer */ |
870 | status = luaD_pcall(L, dothecall, NULL, savestack(L, L->top - 2), 0); | 870 | status = luaD_pcall(L, dothecall, NULL, savestack(L, L->top - 2), 0); |
871 | callstatus(L->func) &= ~CIST_FIN; /* not running a finalizer anymore */ | 871 | L->ci->callstatus &= ~CIST_FIN; /* not running a finalizer anymore */ |
872 | L->allowhook = oldah; /* restore hooks */ | 872 | L->allowhook = oldah; /* restore hooks */ |
873 | g->gcrunning = running; /* restore state */ | 873 | g->gcrunning = running; /* restore state */ |
874 | if (status != LUA_OK && propagateerrors) { /* error while running __gc? */ | 874 | if (status != LUA_OK && propagateerrors) { /* error while running __gc? */ |