aboutsummaryrefslogtreecommitdiff
path: root/ltests.c
diff options
context:
space:
mode:
Diffstat (limited to 'ltests.c')
-rw-r--r--ltests.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/ltests.c b/ltests.c
index 4ac2c702..93a84284 100644
--- a/ltests.c
+++ b/ltests.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: ltests.c,v 2.215 2017/04/24 16:59:26 roberto Exp roberto $ 2** $Id: ltests.c,v 2.216 2017/04/24 18:06:12 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*/
@@ -409,6 +409,8 @@ static void checkobject (global_State *g, GCObject *o, int maybedead,
409 getage(o) == G_TOUCHED1 || 409 getage(o) == G_TOUCHED1 ||
410 getage(o) == G_OLD0 || 410 getage(o) == G_OLD0 ||
411 o->tt == LUA_TTHREAD || 411 o->tt == LUA_TTHREAD ||
412 (o->tt == LUA_TPROTO &&
413 (gco2p(o)->cache != NULL || gco2p(o)->cachemiss >= MAXMISS)) ||
412 (o->tt == LUA_TUPVAL && upisopen(gco2upv(o)))); 414 (o->tt == LUA_TUPVAL && upisopen(gco2upv(o))));
413 } 415 }
414 } 416 }
@@ -446,6 +448,7 @@ static void markgrays (global_State *g) {
446 checkgraylist(g, g->weak); 448 checkgraylist(g, g->weak);
447 checkgraylist(g, g->ephemeron); 449 checkgraylist(g, g->ephemeron);
448 checkgraylist(g, g->allweak); 450 checkgraylist(g, g->allweak);
451 checkgraylist(g, g->protogray);
449} 452}
450 453
451 454