diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2015-02-22 22:43:40 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2015-02-22 22:43:40 +0000 |
commit | cd2dd3df15523e2be8d2bbace27641d6ac9fa40d (patch) | |
tree | fbdacaec253cc5ceee88cb44de5545fa32c8bd67 /test/tsan/mmap_large.cc | |
parent | 476c4db3dc56bee43df384704c75ccc71cfa7a1d (diff) |
Notes
Diffstat (limited to 'test/tsan/mmap_large.cc')
-rw-r--r-- | test/tsan/mmap_large.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/tsan/mmap_large.cc b/test/tsan/mmap_large.cc index e715ea666231b..4ae4c08635013 100644 --- a/test/tsan/mmap_large.cc +++ b/test/tsan/mmap_large.cc @@ -5,7 +5,11 @@ #include <sys/mman.h> int main() { +#ifdef __x86_64__ const size_t kLog2Size = 39; +#elif defined(__mips64) + const size_t kLog2Size = 32; +#endif const uintptr_t kLocation = 0x40ULL << kLog2Size; void *p = mmap( reinterpret_cast<void*>(kLocation), |