aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig
diff options
context:
space:
mode:
Diffstat (limited to 'sysconfig')
-rw-r--r--sysconfig/debug (renamed from sysconfig/mcheck)8
1 files changed, 6 insertions, 2 deletions
diff --git a/sysconfig/mcheck b/sysconfig/debug
index 94f35bd7..f0c05aae 100644
--- a/sysconfig/mcheck
+++ b/sysconfig/debug
@@ -1,9 +1,13 @@
-
# MALLOC_CHECK_: should the system (libc) malloc check for memory errors?
# Used values are:
# unset: do not check
# 0: silently ignore errors
# 1: print diagnostics on stderr when an error is detected
# 2: call abort when an error is detected
-export MALLOC_CHECK_=1
+MALLOC_CHECK_=1
+
+# MALLOC_PERTURB_: initialize cleared memory to the specified value
+MALLOC_PERTURB_=$(($RANDOM % 255 + 1))
+# Perform extra sanity checking in the gslice allocator
+G_SLICE=debug-blocks