summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/scudo/scudo_allocator.cpp
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.cpp
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.cpp')
-rw-r--r--compiler-rt/lib/scudo/scudo_allocator.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/compiler-rt/lib/scudo/scudo_allocator.cpp b/compiler-rt/lib/scudo/scudo_allocator.cpp
index bd9c9b7b14e..e0f78a01542 100644
--- a/compiler-rt/lib/scudo/scudo_allocator.cpp
+++ b/compiler-rt/lib/scudo/scudo_allocator.cpp
@@ -278,6 +278,9 @@ struct ScudoAllocator {
void init() {
SanitizerToolName = "Scudo";
+ PrimaryAllocatorName = "ScudoPrimary";
+ SecondaryAllocatorName = "ScudoSecondary";
+
initFlags();
performSanityChecks();
OpenPOWER on IntegriCloud