summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/scudo/scudo_allocator_secondary.h
diff options
context:
space:
mode:
authorKostya Kortchinsky <kostyak@google.com>2018-04-13 19:21:27 +0000
committerKostya Kortchinsky <kostyak@google.com>2018-04-13 19:21:27 +0000
commit4563b78b99f8677eccf839a852bc10ab2fdfc9b6 (patch)
tree6db18ca7c9383443085d703f0686ca8a6f428d86 /compiler-rt/lib/scudo/scudo_allocator_secondary.h
parent3ede11b58cf5e71ce8a9e664587ee01325365ff4 (diff)
downloadbcm5719-llvm-4563b78b99f8677eccf839a852bc10ab2fdfc9b6.tar.gz
bcm5719-llvm-4563b78b99f8677eccf839a852bc10ab2fdfc9b6.zip
[sanitizer] Allow for the allocator "names" to be set by the tools
Summary: In the same spirit of SanitizerToolName, allow the Primary & Secondary allocators to have names that can be set by the tools via PrimaryAllocatorName and SecondaryAllocatorName. Additionally, set a non-default name for Scudo. Reviewers: alekseyshl, vitalybuka Reviewed By: alekseyshl, vitalybuka Subscribers: kubamracek, delcypher, #sanitizers, llvm-commits Differential Revision: https://reviews.llvm.org/D45600 llvm-svn: 330055
Diffstat (limited to 'compiler-rt/lib/scudo/scudo_allocator_secondary.h')
-rw-r--r--compiler-rt/lib/scudo/scudo_allocator_secondary.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler-rt/lib/scudo/scudo_allocator_secondary.h b/compiler-rt/lib/scudo/scudo_allocator_secondary.h
index 834b91b3871..34ee5cd03b5 100644
--- a/compiler-rt/lib/scudo/scudo_allocator_secondary.h
+++ b/compiler-rt/lib/scudo/scudo_allocator_secondary.h
@@ -89,7 +89,7 @@ class ScudoLargeMmapAllocator {
ReservedSize += 2 * PageSize;
ReservedAddressRange AddressRange;
- uptr ReservedBeg = AddressRange.Init(ReservedSize);
+ uptr ReservedBeg = AddressRange.Init(ReservedSize, SecondaryAllocatorName);
if (UNLIKELY(ReservedBeg == ~static_cast<uptr>(0)))
return ReturnNullOrDieOnFailure::OnOOM();
// A page-aligned pointer is assumed after that, so check it now.
OpenPOWER on IntegriCloud