From 207f351a39158bbb204d42ebd6f98302a668ea55 Mon Sep 17 00:00:00 2001 From: klzgrad Date: Sat, 5 Aug 2023 23:35:21 +0800 Subject: [PATCH] allocator: Disable PartitionAlloc memory tagging --- src/base/allocator/partition_allocator/partition_alloc.gni | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/base/allocator/partition_allocator/partition_alloc.gni b/src/base/allocator/partition_allocator/partition_alloc.gni index fb1187c358..89d624a74f 100644 --- a/src/base/allocator/partition_allocator/partition_alloc.gni +++ b/src/base/allocator/partition_allocator/partition_alloc.gni @@ -30,8 +30,13 @@ if (is_nacl) { assert(false, "Unknown CPU: $current_cpu") } +# 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,