| Index: third_party/WebKit/Source/platform/WebThreadSupportingGC.cpp
|
| diff --git a/third_party/WebKit/Source/platform/WebThreadSupportingGC.cpp b/third_party/WebKit/Source/platform/WebThreadSupportingGC.cpp
|
| index bf50fd6262ed15a2121042490857072195626105..80110e55d9b68601520ddfe59be88f1079fa4ac7 100644
|
| --- a/third_party/WebKit/Source/platform/WebThreadSupportingGC.cpp
|
| +++ b/third_party/WebKit/Source/platform/WebThreadSupportingGC.cpp
|
| @@ -11,18 +11,19 @@
|
|
|
| namespace blink {
|
|
|
| -PassOwnPtr<WebThreadSupportingGC> WebThreadSupportingGC::create(const char* name)
|
| +PassOwnPtr<WebThreadSupportingGC> WebThreadSupportingGC::create(const char* name, bool isolated)
|
| {
|
| - return adoptPtr(new WebThreadSupportingGC(name, nullptr));
|
| + return adoptPtr(new WebThreadSupportingGC(name, nullptr, isolated));
|
| }
|
|
|
| -PassOwnPtr<WebThreadSupportingGC> WebThreadSupportingGC::createForThread(WebThread* thread)
|
| +PassOwnPtr<WebThreadSupportingGC> WebThreadSupportingGC::createForThread(WebThread* thread, bool isolated)
|
| {
|
| - return adoptPtr(new WebThreadSupportingGC(nullptr, thread));
|
| + return adoptPtr(new WebThreadSupportingGC(nullptr, thread, isolated));
|
| }
|
|
|
| -WebThreadSupportingGC::WebThreadSupportingGC(const char* name, WebThread* thread)
|
| +WebThreadSupportingGC::WebThreadSupportingGC(const char* name, WebThread* thread, bool isolated)
|
| : m_thread(thread)
|
| + , m_isolated(isolated)
|
| {
|
| #if ENABLE(ASSERT)
|
| ASSERT(!name || !thread);
|
| @@ -49,6 +50,7 @@ WebThreadSupportingGC::~WebThreadSupportingGC()
|
| void WebThreadSupportingGC::initialize()
|
| {
|
| ThreadState::attach();
|
| + ThreadState::current()->setIsolated(m_isolated);
|
| m_gcTaskRunner = adoptPtr(new GCTaskRunner(m_thread));
|
| }
|
|
|
|
|