Skip to content

Commit a8604f2

Browse files
committed
[ASAN] Removed special case controlling allocator constants for __aarch64__.
This patch should land before D137136 to make sure that the leak sanitizer allocator works correctly. This patch is NFC without D137136. Reviewed By: vitalybuka Differential Revision: https://reviews.llvm.org/D137265
1 parent 8acb881 commit a8604f2

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

compiler-rt/lib/asan/asan_allocator.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -135,12 +135,6 @@ typedef VeryCompactSizeClassMap SizeClassMap;
135135
const uptr kAllocatorSpace = ~(uptr)0;
136136
const uptr kAllocatorSize = 0x2000000000ULL; // 128G.
137137
typedef VeryDenseSizeClassMap SizeClassMap;
138-
# elif defined(__aarch64__)
139-
// AArch64/SANITIZER_CAN_USE_ALLOCATOR64 is only for 42-bit VMA
140-
// so no need to different values for different VMA.
141-
const uptr kAllocatorSpace = 0x10000000000ULL;
142-
const uptr kAllocatorSize = 0x10000000000ULL; // 3T.
143-
typedef DefaultSizeClassMap SizeClassMap;
144138
#elif defined(__sparc__)
145139
const uptr kAllocatorSpace = ~(uptr)0;
146140
const uptr kAllocatorSize = 0x20000000000ULL; // 2T.

0 commit comments

Comments
 (0)