base/allocator: Disable PartitionAlloc memory tagging

This commit is contained in:
klzgrad 2023-08-05 23:35:21 +08:00
parent 97fe81e139
commit b7beca9622

View File

@ -31,8 +31,13 @@ if (is_nacl) {
# Increases the size of the empty slot span ring.
use_large_empty_slot_span_ring = is_mac
# 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 && (is_linux || is_android)
current_cpu == "arm64" && is_clang && !is_asan && is_linux && current_os != "openwrt"
declare_args() {
# Causes all the allocations to be routed via allocator_shim.cc. Usually,