[compiler-rt] ad6c809 - [asan][aarch64] Don't use 64 bit allocator for Apple ios family
Roy Sundahl via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 30 13:17:07 PST 2022
Author: Roy Sundahl
Date: 2022-11-30T13:16:59-08:00
New Revision: ad6c8092dcb26b6991bab078e0e6cf1ab4836add
URL: https://github.com/llvm/llvm-project/commit/ad6c8092dcb26b6991bab078e0e6cf1ab4836add
DIFF: https://github.com/llvm/llvm-project/commit/ad6c8092dcb26b6991bab078e0e6cf1ab4836add.diff
LOG: [asan][aarch64] Don't use 64 bit allocator for Apple ios family
The recent change (https://reviews.llvm.org/D137136) to unconditionally
choose the 64 bit allocator on aarch64 breaks Apple iOS family of devices
which purposely use a smaller address space than is used with macOS.
rdar://102527313
Reviewed By: thetruestblue, yln
Differential Revision: https://reviews.llvm.org/D139030
Added:
Modified:
compiler-rt/lib/sanitizer_common/sanitizer_platform.h
Removed:
################################################################################
diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_platform.h b/compiler-rt/lib/sanitizer_common/sanitizer_platform.h
index 7ecc465bea97a..98dbfe1b8541c 100644
--- a/compiler-rt/lib/sanitizer_common/sanitizer_platform.h
+++ b/compiler-rt/lib/sanitizer_common/sanitizer_platform.h
@@ -287,7 +287,8 @@
# if (SANITIZER_ANDROID && defined(__aarch64__)) || SANITIZER_FUCHSIA
# define SANITIZER_CAN_USE_ALLOCATOR64 1
# elif defined(__mips64) || defined(__arm__) || defined(__i386__) || \
- SANITIZER_RISCV64 || defined(__hexagon__)
+ SANITIZER_RISCV64 || defined(__hexagon__) || \
+ (SANITIZER_APPLE && defined(__aarch64__))
# define SANITIZER_CAN_USE_ALLOCATOR64 0
# else
# define SANITIZER_CAN_USE_ALLOCATOR64 (SANITIZER_WORDSIZE == 64)
More information about the llvm-commits
mailing list