diff options
author | Reid Kleckner <rnk@google.com> | 2016-09-15 16:00:46 +0000 |
---|---|---|
committer | Reid Kleckner <rnk@google.com> | 2016-09-15 16:00:46 +0000 |
commit | 02aff9fa8f2a6ad9ec5cc2479878755bd52a629e (patch) | |
tree | df3c2218a06512631c748b705fef7cd3f83738a0 /lib/sanitizer_common/tests | |
parent | c159cd75fbf59c8606b84bf3c43e7d44b5f0eb07 (diff) |
[sanitizer] Test the allocator with the ASan win64 memory constants
These got out of sync and the tests were failing for me locally. We
assume a 47 bit address space in ASan, so we should do the same in the
tests.
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@281622 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/sanitizer_common/tests')
-rw-r--r-- | lib/sanitizer_common/tests/sanitizer_allocator_test.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/sanitizer_common/tests/sanitizer_allocator_test.cc b/lib/sanitizer_common/tests/sanitizer_allocator_test.cc index 4b5362ae4..b9e3c3bd7 100644 --- a/lib/sanitizer_common/tests/sanitizer_allocator_test.cc +++ b/lib/sanitizer_common/tests/sanitizer_allocator_test.cc @@ -34,8 +34,8 @@ // space that is always available. Thus, a dynamically allocated address space // is used instead (i.e. ~(uptr)0). static const uptr kAllocatorSpace = ~(uptr)0; -static const uptr kAllocatorSize = 0x10000000000ULL; // 1T. -static const u64 kAddressSpaceSize = 1ULL << 40; +static const uptr kAllocatorSize = 0x8000000000ULL; // 500G +static const u64 kAddressSpaceSize = 1ULL << 47; #else static const uptr kAllocatorSpace = 0x700000000000ULL; static const uptr kAllocatorSize = 0x010000000000ULL; // 1T. |