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

Unified Diff: third_party/WebKit/Source/core/Init.cpp

Issue 1776183004: Move ScriptStreamerThread::shutdown to CoreInitializer::shutdown (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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 | third_party/WebKit/Source/web/WebKit.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/Init.cpp
diff --git a/third_party/WebKit/Source/core/Init.cpp b/third_party/WebKit/Source/core/Init.cpp
index 056121830cd5b026244838e0f599b8fa1fc855b9..ccfa175811258948bbd5b8f0ed7b1dfc1928c94a 100644
--- a/third_party/WebKit/Source/core/Init.cpp
+++ b/third_party/WebKit/Source/core/Init.cpp
@@ -145,6 +145,10 @@ void CoreInitializer::init()
void CoreInitializer::shutdown()
{
+ // Shutdown V8-related background threads before V8 is ramped down. Note
+ // that this will wait the thread to stop its operations.
+ ScriptStreamerThread::shutdown();
+
// Make sure we stop the HTMLParserThread before Platform::current() is
// cleared.
ASSERT(Platform::current());
« no previous file with comments | « no previous file | third_party/WebKit/Source/web/WebKit.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698