File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
compiler-rt/lib/sanitizer_common Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change 279
279
#endif
280
280
281
281
// By default we allow to use SizeClassAllocator64 on 64-bit platform.
282
- // But in some cases SizeClassAllocator64 does not work well and we need to
283
- // fallback to SizeClassAllocator32.
282
+ // But in some cases (e.g. AArch64's 39-bit address space) SizeClassAllocator64
283
+ // does not work well and we need to fallback to SizeClassAllocator32.
284
284
// For such platforms build this code with -DSANITIZER_CAN_USE_ALLOCATOR64=0 or
285
285
// change the definition of SANITIZER_CAN_USE_ALLOCATOR64 here.
286
286
#ifndef SANITIZER_CAN_USE_ALLOCATOR64
287
- # if SANITIZER_RISCV64 || SANITIZER_IOS
288
- # define SANITIZER_CAN_USE_ALLOCATOR64 0
289
- # elif defined(__mips64) || defined(__hexagon__)
287
+ # if (SANITIZER_ANDROID && defined(__aarch64__)) || SANITIZER_FUCHSIA
288
+ # define SANITIZER_CAN_USE_ALLOCATOR64 1
289
+ # elif defined(__mips64) || defined(__aarch64__) || defined(__i386__) || \
290
+ defined (__arm__) || SANITIZER_RISCV64 || defined(__hexagon__)
290
291
# define SANITIZER_CAN_USE_ALLOCATOR64 0
291
292
# else
292
293
# define SANITIZER_CAN_USE_ALLOCATOR64 (SANITIZER_WORDSIZE == 64 )
You can’t perform that action at this time.
0 commit comments