From 5bc91c640588ca77b9f84146fc88fcc9bdbfbcd1 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Fri, 23 Oct 2009 17:12:19 -0200 Subject: no more one environment per thread: all threads share a single global environment --- ltests.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'ltests.c') diff --git a/ltests.c b/ltests.c index 4fb7a4d2..ad7f418c 100644 --- a/ltests.c +++ b/ltests.c @@ -1,5 +1,5 @@ /* -** $Id: ltests.c,v 2.75 2009/10/05 16:44:33 roberto Exp roberto $ +** $Id: ltests.c,v 2.76 2009/10/11 20:02:19 roberto Exp roberto $ ** Internal Module for Debugging of the Lua Implementation ** See Copyright Notice in lua.h */ @@ -305,7 +305,6 @@ static void checkstack (global_State *g, lua_State *L1) { lua_assert(uv->v != &uv->u.value); /* must be open */ lua_assert(!isblack(uvo)); /* open upvalues cannot be black */ } - checkliveness(g, gt(L1)); for (ci = L1->ci; ci != NULL; ci = ci->previous) { lua_assert(ci->top <= L1->stack_last); lua_assert(lua_checkpc(ci)); @@ -366,6 +365,8 @@ int lua_checkmemory (lua_State *L) { global_State *g = G(L); GCObject *o; UpVal *uv; + checkliveness(g, &g->l_registry); + checkliveness(g, &g->l_gt); checkstack(g, g->mainthread); for (o = g->rootgc; o != obj2gco(g->mainthread); o = gch(o)->next) { lua_assert(!testbits(o->gch.marked, bit2mask(SEPARATED, SFIXEDBIT))); -- cgit v1.2.3-55-g6feb