Commit cb306601 authored by Arthur Edelstein's avatar Arthur Edelstein Committed by Georg Koppen
Browse files

Bug #10281: Use jemalloc4 and abort on redzone corruption

parent cec6119a
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -5,6 +5,10 @@ mk_add_options MOZ_APP_DISPLAYNAME="Tor Browser"
mk_add_options MOZILLA_OFFICIAL=1
mk_add_options BUILD_OFFICIAL=1

# Use jemalloc 4.x. In 52ESR, we should use
# the --enable-jemalloc=4 flag instead:
export MOZ_JEMALLOC4=1

ac_add_options --enable-optimize
#ac_add_options --disable-optimize
ac_add_options --enable-official-branding
+2 −2
Original line number Diff line number Diff line
@@ -29,10 +29,10 @@
#ifdef DEBUG
#define MOZ_MALLOC_BUILD_OPTIONS ",junk:true"
#else
#define MOZ_MALLOC_BUILD_OPTIONS ",junk:free"
#define MOZ_MALLOC_BUILD_OPTIONS ",junk:true"
#endif

#define MOZ_MALLOC_OPTIONS "narenas:1,tcache:false"
#define MOZ_MALLOC_OPTIONS "narenas:1,tcache:false,redzone:true,abort:true"
MFBT_DATA const char* je_(malloc_conf) =
  MOZ_MALLOC_OPTIONS MOZ_MALLOC_BUILD_OPTIONS;