Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(98)

Unified Diff: third_party/WebKit/Source/wtf/WTFThreadData.cpp

Issue 1583263002: Experimental CompressibleString UMA (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Adopt lazy-initializing way Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/Source/wtf/WTFThreadData.h ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/wtf/WTFThreadData.cpp
diff --git a/third_party/WebKit/Source/wtf/WTFThreadData.cpp b/third_party/WebKit/Source/wtf/WTFThreadData.cpp
index 8ff4e27e57a0a0434303361e807fed617368bb76..286c1182f20d345f9d6f4d638acaaff71c97e459 100644
--- a/third_party/WebKit/Source/wtf/WTFThreadData.cpp
+++ b/third_party/WebKit/Source/wtf/WTFThreadData.cpp
@@ -33,8 +33,10 @@ namespace WTF {
ThreadSpecific<WTFThreadData>* WTFThreadData::staticData;
WTFThreadData::WTFThreadData()
- : m_atomicStringTable(0)
- , m_atomicStringTableDestructor(0)
+ : m_atomicStringTable(nullptr)
+ , m_atomicStringTableDestructor(nullptr)
+ , m_compressibleStringTable(nullptr)
+ , m_compressibleStringTableDestructor(nullptr)
, m_cachedConverterICU(adoptPtr(new ICUConverterWrapper))
{
}
@@ -43,6 +45,8 @@ WTFThreadData::~WTFThreadData()
{
if (m_atomicStringTableDestructor)
m_atomicStringTableDestructor(m_atomicStringTable);
+ if (m_compressibleStringTableDestructor)
+ m_compressibleStringTableDestructor(m_compressibleStringTable);
}
} // namespace WTF
« no previous file with comments | « third_party/WebKit/Source/wtf/WTFThreadData.h ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698