| Index: third_party/WebKit/Source/wtf/WTF.cpp
|
| diff --git a/third_party/WebKit/Source/wtf/WTF.cpp b/third_party/WebKit/Source/wtf/WTF.cpp
|
| index f6d29b5695cc606b5626c440d4990cd0d8a07532..201efc2747ad2825be7a20eb30bc19c149b53d48 100644
|
| --- a/third_party/WebKit/Source/wtf/WTF.cpp
|
| +++ b/third_party/WebKit/Source/wtf/WTF.cpp
|
| @@ -32,6 +32,8 @@
|
|
|
| #include "wtf/Assertions.h"
|
| #include "wtf/Functional.h"
|
| +#include "wtf/StackUtil.h"
|
| +#include "wtf/ThreadSpecific.h"
|
| #include "wtf/Threading.h"
|
| #include "wtf/allocator/Partitions.h"
|
| #include "wtf/text/AtomicString.h"
|
| @@ -63,10 +65,13 @@ void initialize(void (*callOnMainThreadFunction)(MainThreadFunction, void*)) {
|
| // Make that explicit here.
|
| RELEASE_ASSERT(!s_initialized);
|
| s_initialized = true;
|
| + initializeCurrentThread();
|
| + s_mainThreadIdentifier = currentThread();
|
| +
|
| initializeThreading();
|
|
|
| s_callOnMainThreadFunction = callOnMainThreadFunction;
|
| - s_mainThreadIdentifier = currentThread();
|
| + internal::initializeMainThreadStackEstimate();
|
| AtomicString::init();
|
| StringStatics::init();
|
| }
|
|
|