Index: Source/web/WebKit.cpp |
diff --git a/Source/web/WebKit.cpp b/Source/web/WebKit.cpp |
index b36a3078f878ea1502cbebdd16f22c44f71fffe1..476b3c9fc3e4851f4691ee9d78e28d20a1694130 100644 |
--- a/Source/web/WebKit.cpp |
+++ b/Source/web/WebKit.cpp |
@@ -31,6 +31,7 @@ |
#include "config.h" |
#include "public/web/WebKit.h" |
+#include "bindings/core/v8/ScriptStreamerThread.h" |
#include "bindings/core/v8/V8Binding.h" |
#include "bindings/core/v8/V8GCController.h" |
#include "bindings/core/v8/V8Initializer.h" |
@@ -204,6 +205,10 @@ void shutdown() |
s_messageLoopInterruptor = 0; |
} |
+ // Shutdown V8-related background threads before V8 is ramped down. Note |
+ // that this will wait the thread to stop its operations. |
+ ScriptStreamerThread::shutdown(); |
+ |
v8::Isolate* isolate = V8PerIsolateData::mainThreadIsolate(); |
V8PerIsolateData::willBeDestroyed(isolate); |