summaryrefslogtreecommitdiff
path: root/lfunc.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2013-08-05 13:58:28 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2013-08-05 13:58:28 -0300
commit677d90165ffef728231340c6328e9661824dbc34 (patch)
tree3338e6f1b0c2f82db84def5751ea418a58fbc31a /lfunc.c
parent4244da96bfcf205624487b99b69e9d8dd1857293 (diff)
downloadlua-677d90165ffef728231340c6328e9661824dbc34.tar.gz
lua-677d90165ffef728231340c6328e9661824dbc34.tar.bz2
lua-677d90165ffef728231340c6328e9661824dbc34.zip
no more generational collection !!!
Diffstat (limited to 'lfunc.c')
-rw-r--r--lfunc.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/lfunc.c b/lfunc.c
index 68e064b2..a0264fed 100644
--- a/lfunc.c
+++ b/lfunc.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lfunc.c,v 2.29 2012/05/08 13:53:33 roberto Exp roberto $ 2** $Id: lfunc.c,v 2.30 2012/10/03 12:36:46 roberto Exp roberto $
3** Auxiliary functions to manipulate prototypes and closures 3** Auxiliary functions to manipulate prototypes and closures
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -52,7 +52,6 @@ UpVal *luaF_findupval (lua_State *L, StkId level) {
52 while (*pp != NULL && (p = gco2uv(*pp))->v >= level) { 52 while (*pp != NULL && (p = gco2uv(*pp))->v >= level) {
53 GCObject *o = obj2gco(p); 53 GCObject *o = obj2gco(p);
54 lua_assert(p->v != &p->u.value); 54 lua_assert(p->v != &p->u.value);
55 lua_assert(!isold(o) || isold(obj2gco(L)));
56 if (p->v == level) { /* found a corresponding upvalue? */ 55 if (p->v == level) { /* found a corresponding upvalue? */
57 if (isdead(g, o)) /* is it dead? */ 56 if (isdead(g, o)) /* is it dead? */
58 changewhite(o); /* resurrect it */ 57 changewhite(o); /* resurrect it */