Author: Remi Meier <[email protected]>
Branch:
Changeset: r1734:14427b503629
Date: 2015-03-13 13:14 +0100
http://bitbucket.org/pypy/stmgc/changeset/14427b503629/
Log: may help for debugging
diff --git a/c8/stm/nursery.c b/c8/stm/nursery.c
--- a/c8/stm/nursery.c
+++ b/c8/stm/nursery.c
@@ -461,16 +461,20 @@
}
OPT_ASSERT((nursery_used & 7) == 0);
-
-#if _STM_NURSERY_ZEROED
+#ifndef NDEBUG
/* reset the nursery by zeroing it */
char *realnursery;
realnursery = REAL_ADDRESS(pseg->pub.segment_base, _stm_nursery_start);
+#if _STM_NURSERY_ZEROED
memset(realnursery, 0, nursery_used);
/* assert that the rest of the nursery still contains only zeroes */
assert_memset_zero(realnursery + nursery_used,
(NURSERY_END - _stm_nursery_start) - nursery_used);
+
+#else
+ memset(realnursery, 0xa0, nursery_used);
+#endif
#endif
pseg->pub.nursery_current = (stm_char *)_stm_nursery_start;
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit