diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2014-02-18 10:46:26 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2014-02-18 10:46:26 -0300 |
commit | 3f78de256e5759669460c6fa14455303762f2f53 (patch) | |
tree | 287ae3d2ccf441b4158f7a2e29feb21c39188711 /lgc.c | |
parent | d764cc552251fc69207c1bb4b34d3a6a5b7020c6 (diff) | |
download | lua-3f78de256e5759669460c6fa14455303762f2f53.tar.gz lua-3f78de256e5759669460c6fa14455303762f2f53.tar.bz2 lua-3f78de256e5759669460c6fa14455303762f2f53.zip |
no need to keep threads in a different GC list, now that there is the
'twups' list
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 */ |