diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2012-05-08 10:53:33 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2012-05-08 10:53:33 -0300 |
commit | 3cadc37f470df50deb5c920b028125b8bb6c316b (patch) | |
tree | a2a448ef80bddb0ddef2581d0692ccec3de5b159 /lgc.c | |
parent | bb1146dc3986c6f123ed6d85a26694ca8d56f94a (diff) | |
download | lua-3cadc37f470df50deb5c920b028125b8bb6c316b.tar.gz lua-3cadc37f470df50deb5c920b028125b8bb6c316b.tar.bz2 lua-3cadc37f470df50deb5c920b028125b8bb6c316b.zip |
no more 'Proto' objects on the stack. Protos are anchored on outer
Protos or on a Closure, which must be created before the Proto.
Diffstat (limited to 'lgc.c')
-rw-r--r-- | lgc.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lgc.c,v 2.117 2012/01/20 22:05:50 roberto Exp roberto $ | 2 | ** $Id: lgc.c,v 2.119 2012/01/25 21:05:40 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 | */ |
@@ -489,7 +489,6 @@ static int traverseCclosure (global_State *g, CClosure *cl) { | |||
489 | 489 | ||
490 | static int traverseLclosure (global_State *g, LClosure *cl) { | 490 | static int traverseLclosure (global_State *g, LClosure *cl) { |
491 | int i; | 491 | int i; |
492 | lua_assert(cl->nupvalues == cl->p->sizeupvalues); | ||
493 | markobject(g, cl->p); /* mark its prototype */ | 492 | markobject(g, cl->p); /* mark its prototype */ |
494 | for (i = 0; i < cl->nupvalues; i++) /* mark its upvalues */ | 493 | for (i = 0; i < cl->nupvalues; i++) /* mark its upvalues */ |
495 | markobject(g, cl->upvals[i]); | 494 | markobject(g, cl->upvals[i]); |