[compiler-rt] a8604f2 - [ASAN] Removed special case controlling allocator constants for __aarch64__.
Kirill Stoimenov via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 2 10:28:23 PDT 2022
Author: Kirill Stoimenov
Date: 2022-11-02T17:27:59Z
New Revision: a8604f2254f6ec9f5e775e04a2da968e3bc998ad
URL: https://github.com/llvm/llvm-project/commit/a8604f2254f6ec9f5e775e04a2da968e3bc998ad
DIFF: https://github.com/llvm/llvm-project/commit/a8604f2254f6ec9f5e775e04a2da968e3bc998ad.diff
LOG: [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
Added:
Modified:
compiler-rt/lib/asan/asan_allocator.h
Removed:
################################################################################
diff --git a/compiler-rt/lib/asan/asan_allocator.h b/compiler-rt/lib/asan/asan_allocator.h
index 27d826fb613ae..0b4dbf03bb9d5 100644
--- a/compiler-rt/lib/asan/asan_allocator.h
+++ b/compiler-rt/lib/asan/asan_allocator.h
@@ -135,12 +135,6 @@ typedef VeryCompactSizeClassMap SizeClassMap;
const uptr kAllocatorSpace = ~(uptr)0;
const uptr kAllocatorSize = 0x2000000000ULL; // 128G.
typedef VeryDenseSizeClassMap SizeClassMap;
-# elif defined(__aarch64__)
-// AArch64/SANITIZER_CAN_USE_ALLOCATOR64 is only for 42-bit VMA
-// so no need to
diff erent values for
diff erent VMA.
-const uptr kAllocatorSpace = 0x10000000000ULL;
-const uptr kAllocatorSize = 0x10000000000ULL; // 3T.
-typedef DefaultSizeClassMap SizeClassMap;
#elif defined(__sparc__)
const uptr kAllocatorSpace = ~(uptr)0;
const uptr kAllocatorSize = 0x20000000000ULL; // 2T.
More information about the llvm-commits
mailing list