musl: allocator: Disable memory tagging

136.0.7103.44
klzgrad 2023-08-05 23:35:21 +08:00
parent 55e89bcb26
commit 6f81b8d863
1 changed files with 6 additions and 1 deletions

View File

@ -90,8 +90,13 @@ if (is_nacl) {
# TODO(crbug.com/329199197): Clean this up when experiments are complete. # TODO(crbug.com/329199197): Clean this up when experiments are complete.
use_large_empty_slot_span_ring = true use_large_empty_slot_span_ring = true
# Disables for Android ARM64 because it actually requires API 31+.
# See partition_alloc/tagging.cc:
# mallopt can be loaded after API 26.
# mallopt M_BIONIC_SET_HEAP_TAGGING_LEVEL can be called after API 31.
# Disables for OpenWrt Musl which lacks the required ifunc support.
has_memory_tagging = current_cpu == "arm64" && is_clang && !is_asan && has_memory_tagging = current_cpu == "arm64" && is_clang && !is_asan &&
!is_hwasan && (is_linux || is_android) !is_hwasan && is_linux && current_os != "openwrt"
declare_args() { declare_args() {
# Debug configuration. # Debug configuration.