commit c9c6f9747c0bfc77a72214e4e95e26a95ab66bbd
parent c2aa7bd72d620731b5a54b532523dbd9f8e1bfc3
Author: Roberto Ierusalimschy <roberto@inf.puc-rio.br>
Date: Mon, 25 Sep 2000 11:51:48 -0300
GC may crash when checking C closures
Diffstat:
2 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/bugs b/bugs
@@ -213,3 +213,7 @@ Mon Sep 25 11:47:48 EST 2000
>> lua_gettable does not get key from stack top
(by Philip Yi; since 4.0b)
+** lgc.c
+Mon Sep 25 11:50:48 EST 2000
+>> GC may crash when checking C closures
+(by Philip Yi; since 4.0b)
diff --git a/lgc.c b/lgc.c
@@ -1,5 +1,5 @@
/*
-** $Id: lgc.c,v 1.65 2000/09/11 17:38:42 roberto Exp roberto $
+** $Id: lgc.c,v 1.66 2000/09/19 08:42:35 roberto Exp roberto $
** Garbage Collector
** See Copyright Notice in lua.h
*/
@@ -152,7 +152,7 @@ static int hasmark (const TObject *o) {
case TAG_TABLE:
return ismarked(hvalue(o));
case TAG_LCLOSURE: case TAG_CCLOSURE:
- return ismarked(clvalue(o)->mark);
+ return ismarked(clvalue(o));
default: /* number */
return 1;
}