Skip to content

Commit 75a8cdb

Browse files
committed
[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 [[ google/sanitizers#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
1 parent ec0b406 commit 75a8cdb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compiler-rt/lib/sanitizer_common/sanitizer_platform.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -286,8 +286,8 @@
286286
#ifndef SANITIZER_CAN_USE_ALLOCATOR64
287287
# if (SANITIZER_ANDROID && defined(__aarch64__)) || SANITIZER_FUCHSIA
288288
# define SANITIZER_CAN_USE_ALLOCATOR64 1
289-
# elif defined(__mips64) || defined(__aarch64__) || defined(__i386__) || \
290-
defined(__arm__) || SANITIZER_RISCV64 || defined(__hexagon__)
289+
# elif defined(__mips64) || defined(__arm__) || defined(__i386__) || \
290+
SANITIZER_RISCV64 || defined(__hexagon__)
291291
# define SANITIZER_CAN_USE_ALLOCATOR64 0
292292
# else
293293
# define SANITIZER_CAN_USE_ALLOCATOR64 (SANITIZER_WORDSIZE == 64)

0 commit comments

Comments
 (0)