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

Unified Diff: Source/core/Init.cpp

Issue 1167023002: Revert of Implement timers by posting delayed tasks (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 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 | « no previous file | Source/core/fetch/ResourceTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/Init.cpp
diff --git a/Source/core/Init.cpp b/Source/core/Init.cpp
index 652dfa5fbeb8da5b8171cbb74fcf9fe9a2cb4d0d..e59fb58cecae13303a9b37bcc9368d45085a1eb4 100644
--- a/Source/core/Init.cpp
+++ b/Source/core/Init.cpp
@@ -54,6 +54,7 @@
#include "core/workers/WorkerThread.h"
#include "platform/EventTracer.h"
#include "platform/FontFamilyNames.h"
+#include "platform/PlatformThreadData.h"
#include "platform/weborigin/KURL.h"
#include "platform/weborigin/SecurityPolicy.h"
#include "wtf/Partitions.h"
@@ -109,6 +110,10 @@
registerEventFactory();
+ // Ensure that the main thread's thread-local data is initialized before
+ // starting any worker threads.
+ PlatformThreadData::current();
+
StringImpl::freezeStaticStrings();
// Creates HTMLParserThread::shared and ScriptStreamerThread::shared, but
« no previous file with comments | « no previous file | Source/core/fetch/ResourceTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698