summaryrefslogtreecommitdiff
path: root/lgc.c
diff options
context:
space:
mode:
Diffstat (limited to 'lgc.c')
-rw-r--r--lgc.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/lgc.c b/lgc.c
index 5c365e32..d51c4f5f 100644
--- a/lgc.c
+++ b/lgc.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lgc.c,v 2.173 2014/02/13 17:25:20 roberto Exp roberto $ 2** $Id: lgc.c,v 2.174 2014/02/14 16:43:14 roberto Exp roberto $
3** Garbage Collector 3** Garbage Collector
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -296,10 +296,10 @@ static void remarkupvals (global_State *g) {
296 lua_assert(!isblack(thread)); /* threads are never black */ 296 lua_assert(!isblack(thread)); /* threads are never black */
297 if (!isgray(thread)) { /* dead thread? */ 297 if (!isgray(thread)) { /* dead thread? */
298 UpVal *uv = gco2th(thread)->openupval; 298 UpVal *uv = gco2th(thread)->openupval;
299 for (; uv != NULL; uv = uv->u.op.next) { 299 for (; uv != NULL; uv = uv->u.open.next) {
300 if (uv->u.op.touched) { 300 if (uv->u.open.touched) {
301 markvalue(g, uv->v); /* remark upvalue's value */ 301 markvalue(g, uv->v); /* remark upvalue's value */
302 uv->u.op.touched = 0; 302 uv->u.open.touched = 0;
303 } 303 }
304 } 304 }
305 } 305 }
@@ -466,7 +466,7 @@ static lu_mem traverseLclosure (global_State *g, LClosure *cl) {
466 UpVal *uv = cl->upvals[i]; 466 UpVal *uv = cl->upvals[i];
467 if (uv != NULL) { 467 if (uv != NULL) {
468 if (upisopen(uv)) 468 if (upisopen(uv))
469 uv->u.op.touched = 1; /* can be marked in 'remarkupvals' */ 469 uv->u.open.touched = 1; /* can be marked in 'remarkupvals' */
470 else 470 else
471 markvalue(g, uv->v); 471 markvalue(g, uv->v);
472 } 472 }