diff options
Diffstat (limited to 'ltests.c')
-rw-r--r-- | ltests.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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 | } |