Commit db41d7c1 authored by Lei Zhang's avatar Lei Zhang Committed by Commit Bot

Make some tcmalloc constants truly const.

Change-Id: I84e036d5c71373ce3572d4b67b06fcadb25bb347
Reviewed-on: https://chromium-review.googlesource.com/777963
Commit-Queue: Lei Zhang <thestig@chromium.org>
Reviewed-by: default avatarWill Harris <wfh@chromium.org>
Cr-Commit-Position: refs/heads/master@{#517642}
parent 51cbf2c1
......@@ -110,3 +110,4 @@ Modifications:
- Changed kint64min to not depend on undefined behavior.
- Fix potential missing nul character in symbol names produced by addr2line-pdb.
- Remove superfluous size_t value >= 0 check.
- Make kFooType in tcmalloc.cc truly const.
......@@ -818,13 +818,13 @@ class TCMallocImplementation : public MallocExtension {
}
virtual void GetFreeListSizes(vector<MallocExtension::FreeListInfo>* v) {
static const char* kCentralCacheType = "tcmalloc.central";
static const char* kTransferCacheType = "tcmalloc.transfer";
static const char* kThreadCacheType = "tcmalloc.thread";
static const char* kPageHeapType = "tcmalloc.page";
static const char* kPageHeapUnmappedType = "tcmalloc.page_unmapped";
static const char* kLargeSpanType = "tcmalloc.large";
static const char* kLargeUnmappedSpanType = "tcmalloc.large_unmapped";
static const char kCentralCacheType[] = "tcmalloc.central";
static const char kTransferCacheType[] = "tcmalloc.transfer";
static const char kThreadCacheType[] = "tcmalloc.thread";
static const char kPageHeapType[] = "tcmalloc.page";
static const char kPageHeapUnmappedType[] = "tcmalloc.page_unmapped";
static const char kLargeSpanType[] = "tcmalloc.large";
static const char kLargeUnmappedSpanType[] = "tcmalloc.large_unmapped";
v->clear();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment