Author: Armin Rigo <[email protected]>
Branch: 
Changeset: r14:279a2e235032
Date: 2013-05-26 13:21 +0200
http://bitbucket.org/pypy/stmgc/changeset/279a2e235032/

Log:    Use _GC_DEBUG=2 to enable DUMP_EXTRA. Do it from the tests but not
        from the Makefile.

diff --git a/c3/nursery.c b/c3/nursery.c
--- a/c3/nursery.c
+++ b/c3/nursery.c
@@ -258,7 +258,7 @@
 
 
 extern void recdump(gcptr obj);    /* in gcpage.c */
-static void recdump1(char *msg, gcptr obj)
+void recdump1(char *msg, gcptr obj)
 {
     fprintf(stderr, "\n<--------------------%s--------------------> ", msg);
     recdump(obj);
diff --git a/c3/stmimpl.h b/c3/stmimpl.h
--- a/c3/stmimpl.h
+++ b/c3/stmimpl.h
@@ -12,7 +12,11 @@
 #  endif
 #endif
 
-#define DUMP_EXTRA
+#ifdef _GC_DEBUG
+#  if _GC_DEBUG >= 2
+#    define DUMP_EXTRA
+#  endif
+#endif
 
 #include <stddef.h>
 #include <setjmp.h>
diff --git a/c3/test/support.py b/c3/test/support.py
--- a/c3/test/support.py
+++ b/c3/test/support.py
@@ -251,7 +251,7 @@
 '''.lstrip(),    include_dirs=[parent_dir],
                  undef_macros=['NDEBUG'],
                  define_macros=[('GC_NURSERY', '(16 * sizeof(void *))'),
-                                ('_GC_DEBUG', '1'),
+                                ('_GC_DEBUG', '2'),
                                 ('GC_PAGE_SIZE', '1000'),
                                 ('GC_MIN', '200000'),
                                 ('GC_EXPAND', '90000'),
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to