[compiler-rt] 75a8cdb - [Sanitizers] Modified __aarch64__ to use the 64 bit version of the allocator.

Kirill Stoimenov via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 1 13:49:16 PDT 2022


Author: Kirill Stoimenov
Date: 2022-11-01T20:48:42Z
New Revision: 75a8cdbc0659dc20746f31721cc48ef00c49f746

URL: https://github.com/llvm/llvm-project/commit/75a8cdbc0659dc20746f31721cc48ef00c49f746
DIFF: https://github.com/llvm/llvm-project/commit/75a8cdbc0659dc20746f31721cc48ef00c49f746.diff

LOG: [Sanitizers] Modified __aarch64__ to use the 64 bit version of the allocator.

This change will switch SizeClassAllocator32 to SizeClassAllocator64 on ARM. This might potentially affect ARM platforms with 39-bit address space. This addresses [[ https://github.com/google/sanitizers/issues/703  | issues/703  ]], but unlike [[ https://reviews.llvm.org/D60243 | D60243 ]] it defaults to 64 bit allocator.

Reviewed By: vitalybuka, MaskRay

Differential Revision: https://reviews.llvm.org/D137136

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 32005eef08cd5..7ecc465bea97a 100644
--- a/compiler-rt/lib/sanitizer_common/sanitizer_platform.h
+++ b/compiler-rt/lib/sanitizer_common/sanitizer_platform.h
@@ -286,8 +286,8 @@
 #ifndef SANITIZER_CAN_USE_ALLOCATOR64
 #  if (SANITIZER_ANDROID && defined(__aarch64__)) || SANITIZER_FUCHSIA
 #    define SANITIZER_CAN_USE_ALLOCATOR64 1
-#  elif defined(__mips64) || defined(__aarch64__) || defined(__i386__) || \
-      defined(__arm__) || SANITIZER_RISCV64 || defined(__hexagon__)
+#  elif defined(__mips64) || defined(__arm__) || defined(__i386__) || \
+      SANITIZER_RISCV64 || defined(__hexagon__)
 #    define SANITIZER_CAN_USE_ALLOCATOR64 0
 #  else
 #    define SANITIZER_CAN_USE_ALLOCATOR64 (SANITIZER_WORDSIZE == 64)


        


More information about the llvm-commits mailing list