diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2015-09-10 20:35:47 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2015-09-10 20:35:47 +0000 |
commit | 852790874793186f2dfe59fd7c7a082c6920ed9c (patch) | |
tree | f8f8e6ce180ca5204b650ff6315e6e0893f9a679 /contrib/compiler-rt/lib/msan/msan_allocator.cc | |
parent | cfab224f313612ff1961bdd7b9749e29d0e4e6af (diff) | |
parent | f31bcc68c72371a2bf63aead9f3373a1ff2053b6 (diff) |
Update compiler-rt to 3.7.0 release. This also includes the sanitizer
and profile libraries.
Notes
Notes:
svn path=/projects/clang370-import/; revision=287626
Diffstat (limited to 'contrib/compiler-rt/lib/msan/msan_allocator.cc')
-rw-r--r-- | contrib/compiler-rt/lib/msan/msan_allocator.cc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/contrib/compiler-rt/lib/msan/msan_allocator.cc b/contrib/compiler-rt/lib/msan/msan_allocator.cc index 698b6cddd30b..6df35664279f 100644 --- a/contrib/compiler-rt/lib/msan/msan_allocator.cc +++ b/contrib/compiler-rt/lib/msan/msan_allocator.cc @@ -58,6 +58,15 @@ struct MsanMapUnmapCallback { typedef SizeClassAllocator64<kAllocatorSpace, kAllocatorSize, kMetadataSize, DefaultSizeClassMap, MsanMapUnmapCallback> PrimaryAllocator; +#elif defined(__powerpc64__) + static const uptr kAllocatorSpace = 0x300000000000; + static const uptr kAllocatorSize = 0x020000000000; // 2T + static const uptr kMetadataSize = sizeof(Metadata); + static const uptr kMaxAllowedMallocSize = 2UL << 30; // 2G + + typedef SizeClassAllocator64<kAllocatorSpace, kAllocatorSize, kMetadataSize, + DefaultSizeClassMap, + MsanMapUnmapCallback> PrimaryAllocator; #endif typedef SizeClassAllocatorLocalCache<PrimaryAllocator> AllocatorCache; typedef LargeMmapAllocator<MsanMapUnmapCallback> SecondaryAllocator; |