Bug 1142403 - Enable jemalloc debug on debug builds. r=njn
☠☠ backed out by 75eb5a9cbff7 ☠ ☠
authorMike Hommey <mh+mozilla@glandium.org>
Thu, 12 Mar 2015 15:54:43 +0900
changeset 293873 1b13dab24bd1a2694d30756a0daeca4c14525590
parent 293872 a67867200ec31a040bb6bf8320bde20beb34aa3e
child 293874 05bae6d384d96a0a0dbd726e28015636810236b9
push id5245
push userraliiev@mozilla.com
push dateThu, 29 Oct 2015 11:30:51 +0000
treeherdermozilla-beta@dac831dc1bd0 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersnjn
bugs1142403
milestone43.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1142403 - Enable jemalloc debug on debug builds. r=njn
configure.in
--- a/configure.in
+++ b/configure.in
@@ -9136,16 +9136,19 @@ if test "$COMPILE_ENVIRONMENT" -a -z "$L
   MOZ_SUBCONFIGURE_ICU()
   MOZ_SUBCONFIGURE_FFI()
 fi
 
 # Run jemalloc configure script
 
 if test -z "$MOZ_NATIVE_JEMALLOC" -a "$MOZ_MEMORY" && test -n "$MOZ_JEMALLOC4" -o -n "$MOZ_REPLACE_MALLOC"; then
   ac_configure_args="--build=$build --host=$target --enable-stats --with-jemalloc-prefix=je_ --disable-valgrind"
+  if test -n "$MOZ_DEBUG"; then
+    ac_configure_args="$ac_configure_args --enable-debug"
+  fi
   # We're using memalign for _aligned_malloc in memory/build/mozmemory_wrap.c
   # on Windows, so just export memalign on all platforms.
   ac_configure_args="$ac_configure_args ac_cv_func_memalign=yes"
   if test -n "$MOZ_REPLACE_MALLOC"; then
     # When using replace_malloc, we always want valloc exported from jemalloc.
     ac_configure_args="$ac_configure_args ac_cv_func_valloc=yes"
     if test "${OS_ARCH}" = Darwin; then
       # We also need to enable pointer validation on Mac because jemalloc's