Author: Remi Meier <remi.me...@inf.ethz.ch>
Branch: 
Changeset: r1735:0328ee7e02d1
Date: 2015-03-13 14:47 +0100
http://bitbucket.org/pypy/stmgc/changeset/0328ee7e02d1/

Log:    another debugging helper

diff --git a/c8/stm/nursery.c b/c8/stm/nursery.c
--- a/c8/stm/nursery.c
+++ b/c8/stm/nursery.c
@@ -640,6 +640,11 @@
 #if _STM_NURSERY_ZEROED
     memset(REAL_ADDRESS(STM_SEGMENT->segment_base, o), 0, size_rounded_up);
 #else
+
+#ifndef NDEBUG
+    memset(REAL_ADDRESS(STM_SEGMENT->segment_base, o), 0xb0, size_rounded_up);
+#endif
+
     o->stm_flags = 0;
     /* make all pages of 'o' accessible as synchronize_obj_flush() in minor
        collections assumes all young objs are fully accessible. */
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to