diff options
Diffstat (limited to 'lgc.c')
-rw-r--r-- | lgc.c | 6 |
1 files changed, 1 insertions, 5 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lgc.c,v 2.175 2014/02/15 13:12:01 roberto Exp roberto $ | 2 | ** $Id: lgc.c,v 2.176 2014/02/18 13:39:37 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 | */ |
@@ -954,7 +954,6 @@ void luaC_freeallobjects (lua_State *L) { | |||
954 | g->gckind = KGC_NORMAL; | 954 | g->gckind = KGC_NORMAL; |
955 | sweepwholelist(L, &g->finobj); | 955 | sweepwholelist(L, &g->finobj); |
956 | sweepwholelist(L, &g->allgc); | 956 | sweepwholelist(L, &g->allgc); |
957 | sweepwholelist(L, &g->mainthread->next); | ||
958 | sweepwholelist(L, &g->fixedgc); /* collect fixed objects */ | 957 | sweepwholelist(L, &g->fixedgc); /* collect fixed objects */ |
959 | lua_assert(g->strt.nuse == 0); | 958 | lua_assert(g->strt.nuse == 0); |
960 | } | 959 | } |
@@ -1046,9 +1045,6 @@ static lu_mem singlestep (lua_State *L) { | |||
1046 | return work + sw * GCSWEEPCOST; | 1045 | return work + sw * GCSWEEPCOST; |
1047 | } | 1046 | } |
1048 | case GCSswpallgc: { /* sweep "regular" objects */ | 1047 | case GCSswpallgc: { /* sweep "regular" objects */ |
1049 | return sweepstep(L, g, GCSswpthreads, &g->mainthread->next); | ||
1050 | } | ||
1051 | case GCSswpthreads: { /* sweep threads */ | ||
1052 | return sweepstep(L, g, GCSswpfinobj, &g->finobj); | 1048 | return sweepstep(L, g, GCSswpfinobj, &g->finobj); |
1053 | } | 1049 | } |
1054 | case GCSswpfinobj: { /* sweep objects with finalizers */ | 1050 | case GCSswpfinobj: { /* sweep objects with finalizers */ |