diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2022-02-14 17:29:21 +0000 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2022-02-14 17:29:21 +0000 |
commit | 1a0a23f1fc3f6ad6ebf847fe8c48fb9df3cae6a4 (patch) | |
tree | b5c158e44a96c1e2fbb88d6021108f1c76cfa010 /vespamalloc | |
parent | 2cf04edd1930887a04559864d29fa180aac1ae6b (diff) |
Use consisten casing
Diffstat (limited to 'vespamalloc')
-rw-r--r-- | vespamalloc/src/vespamalloc/malloc/datasegment.h | 8 | ||||
-rw-r--r-- | vespamalloc/src/vespamalloc/malloc/malloc.h | 8 |
2 files changed, 8 insertions, 8 deletions
diff --git a/vespamalloc/src/vespamalloc/malloc/datasegment.h b/vespamalloc/src/vespamalloc/malloc/datasegment.h index a72d6160324..a9f5e0046db 100644 --- a/vespamalloc/src/vespamalloc/malloc/datasegment.h +++ b/vespamalloc/src/vespamalloc/malloc/datasegment.h @@ -8,9 +8,9 @@ namespace vespamalloc::segment { -class IMemblockInfo { +class IMemBlockInfo { public: - virtual ~IMemblockInfo() = default; + virtual ~IMemBlockInfo() = default; virtual bool allocated() const = 0; virtual uint32_t threadId() const = 0; virtual void info(FILE * os, int level) const = 0; @@ -22,7 +22,7 @@ public: virtual ~IHelper() = default; virtual size_t classSize(SizeClassT sc) const = 0; virtual void dumpInfo(int level) const = 0; - virtual std::unique_ptr<IMemblockInfo> createMemblockInfo(void * ptr) const = 0; + virtual std::unique_ptr<IMemBlockInfo> createMemblockInfo(void * ptr) const = 0; }; class DataSegment @@ -30,7 +30,7 @@ class DataSegment public: DataSegment(const DataSegment & rhs) = delete; DataSegment & operator = (const DataSegment & rhs) = delete; - DataSegment(const IHelper & helper) __attribute__((noinline)); + explicit DataSegment(const IHelper & helper) __attribute__((noinline)); ~DataSegment() __attribute__((noinline)); void * getBlock(size_t & oldBlockSize, SizeClassT sc) __attribute__((noinline)); diff --git a/vespamalloc/src/vespamalloc/malloc/malloc.h b/vespamalloc/src/vespamalloc/malloc/malloc.h index 5ea9b48b421..cc69d7469c3 100644 --- a/vespamalloc/src/vespamalloc/malloc/malloc.h +++ b/vespamalloc/src/vespamalloc/malloc/malloc.h @@ -12,9 +12,9 @@ namespace vespamalloc { template <typename MemBlockPtrT> -class MemblockInfoT final : public segment::IMemblockInfo { +class MemBlockInfoT final : public segment::IMemBlockInfo { public: - MemblockInfoT(void *ptr) : _mem(ptr, 0, false) { } + MemBlockInfoT(void *ptr) : _mem(ptr, 0, false) { } bool allocated() const override { return _mem.allocated(); } uint32_t threadId() const override { return _mem.threadId(); } void info(FILE * os, int level) const override { _mem.info(os, level); } @@ -40,9 +40,9 @@ public: size_t getMaxNumThreads() const override { return _threadList.getMaxNumThreads(); } size_t classSize(SizeClassT sc) const override { return MemBlockPtrT::classSize(sc); } void dumpInfo(int level) const override { MemBlockPtrT::dumpInfo(level); } - std::unique_ptr<segment::IMemblockInfo> + std::unique_ptr<segment::IMemBlockInfo> createMemblockInfo(void * ptr) const override { - return std::make_unique<MemblockInfoT<MemBlockPtrT>>(ptr); + return std::make_unique<MemBlockInfoT<MemBlockPtrT>>(ptr); } int mallopt(int param, int value); |