From 3aa95981779aa8144da11f328a25bf79bd141c41 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Thu, 25 Mar 2010 10:06:36 -0300 Subject: 'mainthread' is not inserted in the 'allgc' list anymore, but swept separately. --- ltests.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'ltests.c') diff --git a/ltests.c b/ltests.c index 123ff64e..d8c91947 100644 --- a/ltests.c +++ b/ltests.c @@ -1,5 +1,5 @@ /* -** $Id: ltests.c,v 2.87 2010/01/13 16:18:25 roberto Exp roberto $ +** $Id: ltests.c,v 2.88 2010/03/24 13:07:01 roberto Exp roberto $ ** Internal Module for Debugging of the Lua Implementation ** See Copyright Notice in lua.h */ @@ -375,11 +375,10 @@ int lua_checkmemory (lua_State *L) { checkliveness(g, &g->l_registry); lua_assert(!isdead(g, obj2gco(g->l_gt))); checkstack(g, g->mainthread); - for (o = g->allgc; o != obj2gco(g->mainthread); o = gch(o)->next) { - lua_assert(!testbits(o->gch.marked, bit2mask(SEPARATED, SFIXEDBIT))); + for (o = g->allgc; o != NULL; o = gch(o)->next) { + lua_assert(!testbits(o->gch.marked, bitmask(SEPARATED))); checkobject(g, o); } - lua_assert(testbit(o->gch.marked, SFIXEDBIT)); for (o = g->udgc; o != NULL; o = gch(o)->next) { lua_assert(gch(o)->tt == LUA_TUSERDATA && !isdead(g, o) && -- cgit v1.2.3-55-g6feb