diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2015-12-10 16:12:30 -0200 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2015-12-10 16:12:30 -0200 |
| commit | 03412af06e7d2f6c09125c54d3d3dc442aabdddb (patch) | |
| tree | f0f73d8d18cccef5be890e8aafdd4c8c770e266b | |
| parent | 542dbd4c65325e874a3e9b949f5412bef37530b0 (diff) | |
| download | lua-03412af06e7d2f6c09125c54d3d3dc442aabdddb.tar.gz lua-03412af06e7d2f6c09125c54d3d3dc442aabdddb.tar.bz2 lua-03412af06e7d2f6c09125c54d3d3dc442aabdddb.zip | |
detail (removed fixed argument to function 'callallpendingfinalizers')
| -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; |
