зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1435148 - Disable jemalloc when any sanitizer is used. r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D70092
This commit is contained in:
Родитель
dd9d157546
Коммит
9d87851a27
|
@ -1484,6 +1484,8 @@ def asan():
|
|||
|
||||
add_old_configure_assignment('MOZ_ASAN', asan)
|
||||
|
||||
imply_option('--enable-jemalloc', False, when='--enable-address-sanitizer')
|
||||
|
||||
# MSAN
|
||||
# ==============================================================
|
||||
|
||||
|
@ -1497,6 +1499,8 @@ def msan():
|
|||
|
||||
add_old_configure_assignment('MOZ_MSAN', msan)
|
||||
|
||||
imply_option('--enable-jemalloc', False, when='--enable-memory-sanitizer')
|
||||
|
||||
# TSAN
|
||||
# ==============================================================
|
||||
|
||||
|
@ -1510,6 +1514,8 @@ def tsan():
|
|||
|
||||
add_old_configure_assignment('MOZ_TSAN', tsan)
|
||||
|
||||
imply_option('--enable-jemalloc', False, when='--enable-thread-sanitizer')
|
||||
|
||||
# UBSAN
|
||||
# ==============================================================
|
||||
|
||||
|
@ -1560,6 +1566,8 @@ def ub_unsigned_overflow_san():
|
|||
|
||||
add_old_configure_assignment('MOZ_UNSIGNED_OVERFLOW_SANITIZE', ub_unsigned_overflow_san)
|
||||
|
||||
imply_option('--enable-jemalloc', False, when='--enable-undefined-sanitizer')
|
||||
|
||||
# Security Hardening
|
||||
# ==============================================================
|
||||
|
||||
|
@ -2375,6 +2383,8 @@ set_config('HAVE_LIBFUZZER_FLAG_FUZZER_NO_LINK', libfuzzer_flags.no_link_flag_su
|
|||
set_config('LIBFUZZER_FLAGS', libfuzzer_flags.use_flags)
|
||||
add_old_configure_assignment('LIBFUZZER_FLAGS', libfuzzer_flags.use_flags)
|
||||
|
||||
imply_option('--enable-jemalloc', False, when=enable_libfuzzer)
|
||||
|
||||
# Shared library building
|
||||
# ==============================================================
|
||||
|
||||
|
|
|
@ -9,6 +9,5 @@ ac_add_options --enable-address-sanitizer
|
|||
export MOZ_DEBUG_SYMBOLS=1
|
||||
ac_add_options --enable-debug-symbols
|
||||
ac_add_options --disable-install-strip
|
||||
ac_add_options --disable-jemalloc
|
||||
ac_add_options --disable-crashreporter
|
||||
ac_add_options --disable-profiling
|
||||
|
|
|
@ -10,7 +10,6 @@ ac_add_options --enable-thread-sanitizer
|
|||
ac_add_options --disable-sandbox
|
||||
|
||||
# These are required by TSan
|
||||
ac_add_options --disable-jemalloc
|
||||
ac_add_options --disable-crashreporter
|
||||
ac_add_options --disable-profiling
|
||||
|
||||
|
|
|
@ -17,7 +17,6 @@ ac_add_options --enable-address-sanitizer
|
|||
# Mandatory options required for ASan builds
|
||||
ac_add_options --enable-debug-symbols
|
||||
ac_add_options --disable-install-strip
|
||||
ac_add_options --disable-jemalloc
|
||||
ac_add_options --disable-crashreporter
|
||||
ac_add_options --disable-profiling
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче