[compiler-rt] r242582 - [asan] Fix sanitizer_allocator_test on AArch64.

Evgeniy Stepanov eugeni.stepanov at gmail.com
Fri Jul 17 15:29:05 PDT 2015


Author: eugenis
Date: Fri Jul 17 17:29:05 2015
New Revision: 242582

URL: http://llvm.org/viewvc/llvm-project?rev=242582&view=rev
Log:
[asan] Fix sanitizer_allocator_test on AArch64.

Modified:
    compiler-rt/trunk/lib/sanitizer_common/tests/sanitizer_allocator_test.cc

Modified: compiler-rt/trunk/lib/sanitizer_common/tests/sanitizer_allocator_test.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/sanitizer_common/tests/sanitizer_allocator_test.cc?rev=242582&r1=242581&r2=242582&view=diff
==============================================================================
--- compiler-rt/trunk/lib/sanitizer_common/tests/sanitizer_allocator_test.cc (original)
+++ compiler-rt/trunk/lib/sanitizer_common/tests/sanitizer_allocator_test.cc Fri Jul 17 17:29:05 2015
@@ -40,6 +40,8 @@ typedef SizeClassAllocator64<
   kAllocatorSpace, kAllocatorSize, 16, CompactSizeClassMap> Allocator64Compact;
 #elif defined(__mips64)
 static const u64 kAddressSpaceSize = 1ULL << 40;
+#elif defined(__aarch64__)
+static const u64 kAddressSpaceSize = 1ULL << 39;
 #else
 static const u64 kAddressSpaceSize = 1ULL << 32;
 #endif





More information about the llvm-commits mailing list