[pypy-commit] stmgc default: another debugging helper

Raemi noreply at buildbot.pypy.org
Fri Mar 13 16:28:49 CET 2015


Author: Remi Meier <remi.meier at 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. */


More information about the pypy-commit mailing list