Author: Armin Rigo <[email protected]>
Branch:
Changeset: r1176:4408f7de0c1b
Date: 2014-04-22 18:07 +0200
http://bitbucket.org/pypy/stmgc/changeset/4408f7de0c1b/
Log: Check for bugs
diff --git a/c7/stm/largemalloc.c b/c7/stm/largemalloc.c
--- a/c7/stm/largemalloc.c
+++ b/c7/stm/largemalloc.c
@@ -353,6 +353,9 @@
mscan->size = request_size;
mscan->prev_size = BOTH_CHUNKS_USED;
increment_total_allocated(request_size + LARGE_MALLOC_OVERHEAD);
+#ifndef NDEBUG
+ memset((char *)&mscan->d, 0xda, request_size);
+#endif
lm_unlock();
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit