[pypy-commit] stmgc default: Check for bugs

arigo noreply at buildbot.pypy.org
Tue Apr 22 18:07:10 CEST 2014


Author: Armin Rigo <arigo at tunes.org>
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();
 


More information about the pypy-commit mailing list