diff options
author | Gabriel Marin <gmx@chromium.org> | 2018-10-05 22:00:33 +0000 |
---|---|---|
committer | Gabriel Marin <gmx@chromium.org> | 2018-10-05 17:17:55 -0700 |
commit | 90df23c81fe6baf7799b5d3df37d2846ab88fc60 (patch) | |
tree | d44612c015e64eae397c9c223046e42b31b359b8 | |
parent | 49dbe4362b431629111b85929d91fe9a46c42295 (diff) | |
download | gperftools-90df23c81fe6baf7799b5d3df37d2846ab88fc60.tar.gz |
Make some tcmalloc constants truly const
Reviewed-on: https://chromium-review.googlesource.com/c/1130809
-rw-r--r-- | src/tcmalloc.cc | 14 |
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(); |