Skip to content

Commit 4e332bb

Browse files
authored
[asan] Change Apple back to fixed allocator base address (#104818)
This partially reverts #98511 - specifically, the SANITIZER_APPLE case - because of a suspected breakage for clang on Mac (https://g-issues.chromium.org/issues/360160858; #98511 (comment)).
1 parent 865952b commit 4e332bb

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

compiler-rt/lib/asan/asan_allocator.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,13 @@ const uptr kAllocatorSize = 0x40000000000ULL; // 4T.
189189
typedef DefaultSizeClassMap SizeClassMap;
190190
# endif // SANITIZER_RISCV64
191191
# else // SANITIZER_FUCHSIA
192+
193+
# if SANITIZER_APPLE
194+
const uptr kAllocatorSpace = 0x600000000000ULL;
195+
# else // SANITIZER_APPLE
192196
const uptr kAllocatorSpace = ~(uptr)0;
197+
# endif // SANITIZER_APPLE
198+
193199
# if defined(__powerpc64__)
194200
const uptr kAllocatorSize = 0x20000000000ULL; // 2T.
195201
typedef DefaultSizeClassMap SizeClassMap;

0 commit comments

Comments
 (0)