aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig/debug
blob: 4ae4e7b577654d81a7b23303e7f5a6bdebcd524f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# 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
# Note: MALLOC_CHECK_ is not thread safe, enable at your own risk.
# export MALLOC_CHECK_=1

# MALLOC_PERTURB_: initialize cleared memory to the specified value
export MALLOC_PERTURB_=$(($RANDOM % 255 + 1))

# Perform extra sanity checking in the gslice allocator
export G_SLICE=debug-blocks