| Index: Source/web/WebKit.cpp
|
| diff --git a/Source/web/WebKit.cpp b/Source/web/WebKit.cpp
|
| index 370d6141528c28f16bf3a834d136dc11e9b2cf0f..4da28848c37838b5ae682570e0bf609c2fd96a0d 100644
|
| --- a/Source/web/WebKit.cpp
|
| +++ b/Source/web/WebKit.cpp
|
| @@ -218,12 +218,14 @@ void shutdown()
|
| s_messageLoopInterruptor = 0;
|
| }
|
|
|
| + v8::Isolate* isolate = V8PerIsolateData::mainThreadIsolate();
|
| + V8PerIsolateData::willBeDestroyed(isolate);
|
| +
|
| // Detach the main thread before starting the shutdown sequence
|
| // so that the main thread won't get involved in a GC during the shutdown.
|
| ThreadState::detachMainThread();
|
|
|
| - v8::Isolate* isolate = V8PerIsolateData::mainThreadIsolate();
|
| - V8PerIsolateData::dispose(isolate);
|
| + V8PerIsolateData::destroy(isolate);
|
| isolate->Exit();
|
| isolate->Dispose();
|
|
|
|
|