| 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
|
|
|