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

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

Issue 2103373002: Don't lazy allocate the AtomicStringTable. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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') | third_party/WebKit/Source/wtf/text/AtomicString.cpp » ('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 4fe603433c06e630906179ef856dcaaad0738341..c60fdcdb393f90fa2645d8cbcdb48402e146123e 100644
--- a/third_party/WebKit/Source/wtf/WTFThreadData.cpp
+++ b/third_party/WebKit/Source/wtf/WTFThreadData.cpp
@@ -26,7 +26,6 @@
#include "wtf/WTFThreadData.h"
-#include "wtf/PtrUtil.h"
#include "wtf/text/TextCodecICU.h"
namespace WTF {
@@ -34,18 +33,15 @@ namespace WTF {
ThreadSpecific<WTFThreadData>* WTFThreadData::staticData;
WTFThreadData::WTFThreadData()
- : m_atomicStringTable(nullptr)
- , m_atomicStringTableDestructor(nullptr)
+ : m_atomicStringTable(new AtomicStringTable)
, m_compressibleStringTable(nullptr)
, m_compressibleStringTableDestructor(nullptr)
- , m_cachedConverterICU(wrapUnique(new ICUConverterWrapper))
+ , m_cachedConverterICU(new ICUConverterWrapper)
{
}
WTFThreadData::~WTFThreadData()
{
- if (m_atomicStringTableDestructor)
- m_atomicStringTableDestructor(m_atomicStringTable);
if (m_compressibleStringTableDestructor)
m_compressibleStringTableDestructor(m_compressibleStringTable);
}
« no previous file with comments | « third_party/WebKit/Source/wtf/WTFThreadData.h ('k') | third_party/WebKit/Source/wtf/text/AtomicString.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698