From d6abcbb14b8d1c8beb1c61bfc5a24cb54578b85c Mon Sep 17 00:00:00 2001 From: Jason Evans Date: Thu, 12 Apr 2012 17:09:54 -0700 Subject: [PATCH] Always disable redzone by default. Always disable redzone by default, even when --enable-debug is specified. The memory overhead for redzones can be substantial, which makes this feature something that should only be opted into. --- doc/jemalloc.xml.in | 4 +--- src/jemalloc.c | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/doc/jemalloc.xml.in b/doc/jemalloc.xml.in index a47c7635..ee60c98a 100644 --- a/doc/jemalloc.xml.in +++ b/doc/jemalloc.xml.in @@ -865,9 +865,7 @@ for (i = 0; i < nbins; i++) { url="http://http://valgrind.org/">Valgrind, which needs redzones in order to do effective buffer overflow/underflow detection. This option is intended for debugging and will impact performance - negatively. This option is disabled by default unless - is specified during configuration, in - which case it is enabled by default. + negatively. This option is disabled by default. diff --git a/src/jemalloc.c b/src/jemalloc.c index 1622937d..9b8b52d2 100644 --- a/src/jemalloc.c +++ b/src/jemalloc.c @@ -14,17 +14,15 @@ const char *je_malloc_conf JEMALLOC_ATTR(visibility("default")); bool opt_abort = true; # ifdef JEMALLOC_FILL bool opt_junk = true; -bool opt_redzone = true; # else bool opt_junk = false; -bool opt_redzone = false; # endif #else bool opt_abort = false; bool opt_junk = false; -bool opt_redzone = false; #endif size_t opt_quarantine = ZU(0); +bool opt_redzone = false; bool opt_utrace = false; bool opt_valgrind = false; bool opt_xmalloc = false;