commit 67b44c9493c7eb1882a9a059b8b39ed350b5b635
parent 758a38164481891acb1dd07003c1726554034d67
Author: Roberto Ierusalimschy <roberto@inf.puc-rio.br>
Date: Fri, 22 Jan 1999 16:07:41 -0200
local names are all in the constant pool, so they do not need to be
marked in GC.
Diffstat:
1 file changed, 2 insertions(+), 9 deletions(-)
diff --git a/lgc.c b/lgc.c
@@ -1,5 +1,5 @@
/*
-** $Id: lgc.c,v 1.18 1998/03/09 21:49:52 roberto Exp roberto $
+** $Id: lgc.c,v 1.19 1998/07/12 16:10:38 roberto Exp roberto $
** Garbage Collector
** See Copyright Notice in lua.h
*/
@@ -163,20 +163,13 @@ static void strmark (TaggedString *s)
}
-static void protomark (TProtoFunc *f)
-{
+static void protomark (TProtoFunc *f) {
if (!f->head.marked) {
- LocVar *v = f->locvars;
int i;
f->head.marked = 1;
strmark(f->fileName);
for (i=0; i<f->nconsts; i++)
markobject(&f->consts[i]);
- if (v) {
- for (; v->line != -1; v++)
- if (v->varname)
- strmark(v->varname);
- }
}
}