mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-27 19:16:04 +00:00
[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
This commit is contained in:
parent
c7576cb89d
commit
a588cfe37e
@ -286,8 +286,8 @@
|
|||||||
#ifndef SANITIZER_CAN_USE_ALLOCATOR64
|
#ifndef SANITIZER_CAN_USE_ALLOCATOR64
|
||||||
# if (SANITIZER_ANDROID && defined(__aarch64__)) || SANITIZER_FUCHSIA
|
# if (SANITIZER_ANDROID && defined(__aarch64__)) || SANITIZER_FUCHSIA
|
||||||
# define SANITIZER_CAN_USE_ALLOCATOR64 1
|
# define SANITIZER_CAN_USE_ALLOCATOR64 1
|
||||||
# elif defined(__mips64) || defined(__aarch64__) || defined(__i386__) || \
|
# elif defined(__mips64) || defined(__arm__) || defined(__i386__) || \
|
||||||
defined(__arm__) || SANITIZER_RISCV64 || defined(__hexagon__)
|
SANITIZER_RISCV64 || defined(__hexagon__)
|
||||||
# define SANITIZER_CAN_USE_ALLOCATOR64 0
|
# define SANITIZER_CAN_USE_ALLOCATOR64 0
|
||||||
# else
|
# else
|
||||||
# define SANITIZER_CAN_USE_ALLOCATOR64 (SANITIZER_WORDSIZE == 64)
|
# define SANITIZER_CAN_USE_ALLOCATOR64 (SANITIZER_WORDSIZE == 64)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user