| OLD | NEW | 
|---|
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be | 
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. | 
| 4 | 4 | 
| 5 import("//build/config/sanitizers/sanitizers.gni") | 5 import("//build/config/sanitizers/sanitizers.gni") | 
| 6 | 6 | 
| 7 # Temporarily disable tcmalloc on arm64 linux to get rid of compilation errors. | 7 # Temporarily disable tcmalloc on arm64 linux to get rid of compilation errors. | 
| 8 if (is_android || current_cpu == "mipsel" || is_mac || is_ios || is_asan || | 8 if (is_android || current_cpu == "mipsel" || is_mac || is_ios || is_asan || | 
| 9     is_lsan || is_tsan || is_msan || is_win || is_syzyasan || | 9     is_lsan || is_tsan || is_msan || is_win || is_syzyasan || is_fuchsia || | 
| 10     (is_linux && target_cpu == "arm64")) { | 10     (is_linux && target_cpu == "arm64")) { | 
| 11   _default_allocator = "none" | 11   _default_allocator = "none" | 
| 12 } else { | 12 } else { | 
| 13   _default_allocator = "tcmalloc" | 13   _default_allocator = "tcmalloc" | 
| 14 } | 14 } | 
| 15 | 15 | 
| 16 # The debug CRT on Windows has some debug features that are incompatible with | 16 # The debug CRT on Windows has some debug features that are incompatible with | 
| 17 # the shim. NaCl in particular does seem to link some binaries statically | 17 # the shim. NaCl in particular does seem to link some binaries statically | 
| 18 # against the debug CRT with "is_nacl=false". | 18 # against the debug CRT with "is_nacl=false". | 
| 19 if ((is_linux || is_android || is_mac || | 19 if ((is_linux || is_android || is_mac || | 
| (...skipping 27 matching lines...) Expand all  Loading... | 
| 47 | 47 | 
| 48 assert(!use_experimental_allocator_shim || is_linux || is_android || is_win || | 48 assert(!use_experimental_allocator_shim || is_linux || is_android || is_win || | 
| 49            is_mac, | 49            is_mac, | 
| 50        "use_experimental_allocator_shim supported only on Linux, Android, " + | 50        "use_experimental_allocator_shim supported only on Linux, Android, " + | 
| 51            "Windows and macOS targets") | 51            "Windows and macOS targets") | 
| 52 | 52 | 
| 53 if (is_win && use_experimental_allocator_shim) { | 53 if (is_win && use_experimental_allocator_shim) { | 
| 54   assert(!is_component_build, | 54   assert(!is_component_build, | 
| 55          "The allocator shim doesn't work for the component build on Windows.") | 55          "The allocator shim doesn't work for the component build on Windows.") | 
| 56 } | 56 } | 
| OLD | NEW | 
|---|