summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/scudo/scudo_allocator_combined.h
diff options
context:
space:
mode:
authorKostya Kortchinsky <kostyak@google.com>2018-07-20 15:07:17 +0000
committerKostya Kortchinsky <kostyak@google.com>2018-07-20 15:07:17 +0000
commitcccd21d42c6349f2f3c7eb730d6edb1e20c66eca (patch)
tree20b78f05b5b5e4c8e78576d7c0e6e5d748a5c285 /compiler-rt/lib/scudo/scudo_allocator_combined.h
parent534f4e6dd01c4ad95289c066aebf5ababd4b617b (diff)
downloadbcm5719-llvm-cccd21d42c6349f2f3c7eb730d6edb1e20c66eca.tar.gz
bcm5719-llvm-cccd21d42c6349f2f3c7eb730d6edb1e20c66eca.zip
[scudo] Simplify internal names (NFC)
Summary: There is currently too much redundancy in the class/variable/* names in Scudo: - we are in the namespace `__scudo`, so there is no point in having something named `ScudoX` to end up with a final name of `__scudo::ScudoX`; - there are a lot of types/* that have `Allocator` in the name, given that Scudo is an allocator I figure this doubles up as well. So change a bunch of the Scudo names to make them shorter, less redundant, and overall simpler. They should still be pretty self explaining (or at least it looks so to me). The TSD part will be done in another CL (eg `__scudo::ScudoTSD`). Reviewers: alekseyshl, eugenis Reviewed By: alekseyshl Subscribers: delcypher, #sanitizers, llvm-commits Differential Revision: https://reviews.llvm.org/D49505 llvm-svn: 337557
Diffstat (limited to 'compiler-rt/lib/scudo/scudo_allocator_combined.h')
-rw-r--r--compiler-rt/lib/scudo/scudo_allocator_combined.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler-rt/lib/scudo/scudo_allocator_combined.h b/compiler-rt/lib/scudo/scudo_allocator_combined.h
index d22f2a3772d..6e40660ba9a 100644
--- a/compiler-rt/lib/scudo/scudo_allocator_combined.h
+++ b/compiler-rt/lib/scudo/scudo_allocator_combined.h
@@ -16,12 +16,12 @@
#define SCUDO_ALLOCATOR_COMBINED_H_
#ifndef SCUDO_ALLOCATOR_H_
-#error "This file must be included inside scudo_allocator.h."
+# error "This file must be included inside scudo_allocator.h."
#endif
template <class PrimaryAllocator, class AllocatorCache,
class SecondaryAllocator>
-class ScudoCombinedAllocator {
+class CombinedAllocator {
public:
void init(s32 ReleaseToOSIntervalMs) {
Primary.Init(ReleaseToOSIntervalMs);
OpenPOWER on IntegriCloud