diff options
Diffstat (limited to '')
| -rw-r--r-- | lgc.c | 8 |
1 files changed, 4 insertions, 4 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: lgc.c,v 2.209 2015/11/02 18:48:07 roberto Exp roberto $ | 2 | ** $Id: lgc.c,v 2.210 2015/11/03 18:10:44 roberto Exp roberto $ |
| 3 | ** Garbage Collector | 3 | ** Garbage Collector |
| 4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
| 5 | */ | 5 | */ |
| @@ -856,10 +856,10 @@ static int runafewfinalizers (lua_State *L) { | |||
| 856 | /* | 856 | /* |
| 857 | ** call all pending finalizers | 857 | ** call all pending finalizers |
| 858 | */ | 858 | */ |
| 859 | static void callallpendingfinalizers (lua_State *L, int propagateerrors) { | 859 | static void callallpendingfinalizers (lua_State *L) { |
| 860 | global_State *g = G(L); | 860 | global_State *g = G(L); |
| 861 | while (g->tobefnz) | 861 | while (g->tobefnz) |
| 862 | GCTM(L, propagateerrors); | 862 | GCTM(L, 0); |
| 863 | } | 863 | } |
| 864 | 864 | ||
| 865 | 865 | ||
| @@ -971,7 +971,7 @@ void luaC_freeallobjects (lua_State *L) { | |||
| 971 | global_State *g = G(L); | 971 | global_State *g = G(L); |
| 972 | separatetobefnz(g, 1); /* separate all objects with finalizers */ | 972 | separatetobefnz(g, 1); /* separate all objects with finalizers */ |
| 973 | lua_assert(g->finobj == NULL); | 973 | lua_assert(g->finobj == NULL); |
| 974 | callallpendingfinalizers(L, 0); | 974 | callallpendingfinalizers(L); |
| 975 | lua_assert(g->tobefnz == NULL); | 975 | lua_assert(g->tobefnz == NULL); |
| 976 | g->currentwhite = WHITEBITS; /* this "white" makes all objects look dead */ | 976 | g->currentwhite = WHITEBITS; /* this "white" makes all objects look dead */ |
| 977 | g->gckind = KGC_NORMAL; | 977 | g->gckind = KGC_NORMAL; |
