summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabriel Marin <gmx@chromium.org>2018-10-05 22:00:33 +0000
committerGabriel Marin <gmx@chromium.org>2018-10-05 17:17:55 -0700
commit90df23c81fe6baf7799b5d3df37d2846ab88fc60 (patch)
treed44612c015e64eae397c9c223046e42b31b359b8
parent49dbe4362b431629111b85929d91fe9a46c42295 (diff)
downloadgperftools-90df23c81fe6baf7799b5d3df37d2846ab88fc60.tar.gz
Make some tcmalloc constants truly const
Reviewed-on: https://chromium-review.googlesource.com/c/1130809
-rw-r--r--src/tcmalloc.cc14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/tcmalloc.cc b/src/tcmalloc.cc
index b320b30..40bb226 100644
--- a/src/tcmalloc.cc
+++ b/src/tcmalloc.cc
@@ -916,13 +916,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();