aboutsummaryrefslogtreecommitdiff
path: root/ltests.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2013-08-27 17:04:00 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2013-08-27 17:04:00 -0300
commit90972ff136f310f00b04d9e9837ee0640983b743 (patch)
tree5362eb13fd6ab3d314bc9baefe3d73b1f0e02fad /ltests.c
parentaf35c7f398e8149b5f2481b63b399674e4ecdf7e (diff)
downloadlua-90972ff136f310f00b04d9e9837ee0640983b743.tar.gz
lua-90972ff136f310f00b04d9e9837ee0640983b743.tar.bz2
lua-90972ff136f310f00b04d9e9837ee0640983b743.zip
LOCALBLACK changed to LOCALMARK and used also to control whether object
is in 'localgc' list + luaC_newobj by default puts object in 'localgc' list
Diffstat (limited to 'ltests.c')
-rw-r--r--ltests.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/ltests.c b/ltests.c
index e2057736..aa247aa6 100644
--- a/ltests.c
+++ b/ltests.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: ltests.c,v 2.149 2013/08/26 12:41:10 roberto Exp roberto $ 2** $Id: ltests.c,v 2.150 2013/08/27 18:53:35 roberto Exp roberto $
3** Internal Module for Debugging of the Lua Implementation 3** Internal Module for Debugging of the Lua Implementation
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -452,6 +452,7 @@ int lua_checkmemory (lua_State *L) {
452 else lua_assert(!isthread); /* ... and only threads */ 452 else lua_assert(!isthread); /* ... and only threads */
453 checkobject(g, o, maybedead); 453 checkobject(g, o, maybedead);
454 lua_assert(!tofinalize(o)); 454 lua_assert(!tofinalize(o));
455 lua_assert(testbit(o->gch.marked, LOCALMARK));
455 } 456 }
456 /* check 'finobj' list */ 457 /* check 'finobj' list */
457 checkgray(g, g->finobj); 458 checkgray(g, g->finobj);
@@ -473,6 +474,7 @@ int lua_checkmemory (lua_State *L) {
473 checkgray(g, g->localgc); 474 checkgray(g, g->localgc);
474 for (o = g->localgc; o != NULL; o = gch(o)->next) { 475 for (o = g->localgc; o != NULL; o = gch(o)->next) {
475 checkobject(g, o, 1); 476 checkobject(g, o, 1);
477 lua_assert(!testbit(o->gch.marked, LOCALMARK));
476 } 478 }
477 return 0; 479 return 0;
478} 480}