commit 3fbb488749901d2a50b1cb55a2de8df8a8d80947
parent cd4754ec13ede254a7aa489fc159f2c6948bc992
Author: Andres Navarro <canavarro82@gmail.com>
Date: Thu, 21 Apr 2011 13:03:09 -0300
Bugfix: I had deleted a line when copying from lua gc to call propagate for the weak tables... Fixed. Segfault is gone & Valgrind doesn't complain.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/kgc.c b/src/kgc.c
@@ -575,10 +575,10 @@ static void atomic (klisp_State *K) {
/* traverse objects caught by write barrier */
propagateall(K);
- /* klisp: for now in klisp this isn't used */
/* remark weak tables */
K->gray = K->weak;
K->weak = NULL;
+ propagateall(K);
/* remark gray again */
K->gray = K->grayagain;