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

Unified Diff: third_party/WebKit/Source/platform/WebThreadSupportingGC.cpp

Issue 1892713003: Prepare for multiple ThreadHeaps (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 8 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/platform/WebThreadSupportingGC.cpp
diff --git a/third_party/WebKit/Source/platform/WebThreadSupportingGC.cpp b/third_party/WebKit/Source/platform/WebThreadSupportingGC.cpp
index 070b2cf9ea7dbe28414da02a321ef22e1e92a763..00f39c38c22966f17080336b9a119740d45842a6 100644
--- a/third_party/WebKit/Source/platform/WebThreadSupportingGC.cpp
+++ b/third_party/WebKit/Source/platform/WebThreadSupportingGC.cpp
@@ -47,7 +47,7 @@ WebThreadSupportingGC::~WebThreadSupportingGC()
void WebThreadSupportingGC::initialize()
{
- ThreadState::attach();
+ ThreadState::attachCurrentThread();
m_gcTaskRunner = adoptPtr(new GCTaskRunner(m_thread));
}
@@ -64,7 +64,7 @@ void WebThreadSupportingGC::shutdown()
if (m_owningThread)
m_owningThread->scheduler()->shutdown();
- ThreadState::detach();
+ ThreadState::detachCurrentThread();
}
} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/bindings/core/v8/WrapperTypeInfo.h ('k') | third_party/WebKit/Source/platform/exported/Platform.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698