summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/sanitizer_common/tests/sanitizer_allocator_test.cc
diff options
context:
space:
mode:
authorMarcin Koscielnicki <koriakin@0x04.net>2016-04-14 12:56:15 +0000
committerMarcin Koscielnicki <koriakin@0x04.net>2016-04-14 12:56:15 +0000
commit0ffa9eaa4a0f4ccbd30d30fed52ec15d8a0f70b8 (patch)
tree67197b3f614b57976867c5dd4c246b83e98fc3c0 /compiler-rt/lib/sanitizer_common/tests/sanitizer_allocator_test.cc
parent545e507c438ff87d44ec873abda9b4379f2bf724 (diff)
downloadbcm5719-llvm-0ffa9eaa4a0f4ccbd30d30fed52ec15d8a0f70b8.tar.gz
bcm5719-llvm-0ffa9eaa4a0f4ccbd30d30fed52ec15d8a0f70b8.zip
[sanitizer] [SystemZ] Add virtual space size.
This teaches sanitizer_common about s390 and s390x virtual space size. s390 is unusual in that it has 31-bit virtual space. Differential Revision: http://reviews.llvm.org/D18896 llvm-svn: 266296
Diffstat (limited to 'compiler-rt/lib/sanitizer_common/tests/sanitizer_allocator_test.cc')
-rw-r--r--compiler-rt/lib/sanitizer_common/tests/sanitizer_allocator_test.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/compiler-rt/lib/sanitizer_common/tests/sanitizer_allocator_test.cc b/compiler-rt/lib/sanitizer_common/tests/sanitizer_allocator_test.cc
index 7ba33456814..ae104040504 100644
--- a/compiler-rt/lib/sanitizer_common/tests/sanitizer_allocator_test.cc
+++ b/compiler-rt/lib/sanitizer_common/tests/sanitizer_allocator_test.cc
@@ -42,6 +42,10 @@ typedef SizeClassAllocator64<
static const u64 kAddressSpaceSize = 1ULL << 40;
#elif defined(__aarch64__)
static const u64 kAddressSpaceSize = 1ULL << 39;
+#elif defined(__s390x__)
+static const u64 kAddressSpaceSize = 1ULL << 53;
+#elif defined(__s390__)
+static const u64 kAddressSpaceSize = 1ULL << 31;
#else
static const u64 kAddressSpaceSize = 1ULL << 32;
#endif
OpenPOWER on IntegriCloud