Author: Remi Meier <meier...@student.ethz.ch>
Branch: 
Changeset: r349:de365b519570
Date: 2013-07-05 09:45 +0200
http://bitbucket.org/pypy/stmgc/changeset/de365b519570/

Log:    fix: don't trace stubs

diff --git a/c4/gcpage.c b/c4/gcpage.c
--- a/c4/gcpage.c
+++ b/c4/gcpage.c
@@ -225,7 +225,8 @@
             id_copy->h_tid |= GCFLAG_VISITED;
 
             /* XXX: may not always need tracing? */
-            gcptrlist_insert(&objects_to_trace, id_copy);
+            if (!(id_copy->h_tid & GCFLAG_STUB))
+                gcptrlist_insert(&objects_to_trace, id_copy);
         } 
         else {
             /* prebuilt originals won't get collected anyway
diff --git a/duhton/Makefile b/duhton/Makefile
--- a/duhton/Makefile
+++ b/duhton/Makefile
@@ -5,7 +5,7 @@
        gcc -pthread -g -O2 -o duhton *.c ../c4/stmgc.c -Wall -lrt 
 
 duhton_debug: *.c *.h ../c4/*.c ../c4/*.h
-       gcc -pthread -g -DDu_DEBUG -D_GC_DEBUG=2 -DGC_NURSERY=2048 -o 
duhton_debug *.c ../c4/stmgc.c -Wall -lrt 
+       gcc -pthread -g -DDu_DEBUG -D_GC_DEBUGPRINTS=1 -DGC_NURSERY=2048 -o 
duhton_debug *.c ../c4/stmgc.c -Wall -lrt 
 
 clean:
        rm -f duhton duhton_debug
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to