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

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

Issue 2646003003: Avoid checking for WTFThreadData::staticData in wtfThreadData() (Closed)
Patch Set: Created 3 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
Index: third_party/WebKit/Source/wtf/ThreadingWin.cpp
diff --git a/third_party/WebKit/Source/wtf/ThreadingWin.cpp b/third_party/WebKit/Source/wtf/ThreadingWin.cpp
index 8808450dd2adb84650d13a0e96fb2232284784f0..503fb616f4c5f052b19868ac8c913c64f7fbd6bb 100644
--- a/third_party/WebKit/Source/wtf/ThreadingWin.cpp
+++ b/third_party/WebKit/Source/wtf/ThreadingWin.cpp
@@ -148,12 +148,13 @@ void initializeThreading() {
// This should only be called once.
DCHECK(!atomicallyInitializedStaticMutex);
+ WTFThreadData::initializeOnMainThread();
+
// StringImpl::empty() does not construct its static string in a threadsafe
// fashion, so ensure it has been initialized from here.
StringImpl::empty();
StringImpl::empty16Bit();
atomicallyInitializedStaticMutex = new Mutex;
- wtfThreadData();
initializeDates();
// Force initialization of static DoubleToStringConverter converter variable
// inside EcmaScriptConverter function while we are in single thread mode.

Powered by Google App Engine
This is Rietveld 408576698