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

Unified Diff: Source/web/WebKit.cpp

Issue 429453010: Drop V8RecursionScope dependency on ExecutionContext (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Reorder cleanup methods per haraken Created 6 years, 3 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 | « Source/modules/indexeddb/InspectorIndexedDBAgent.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/WebKit.cpp
diff --git a/Source/web/WebKit.cpp b/Source/web/WebKit.cpp
index 9411f97e35f2895436dc35c9887cec99e90d655c..115b9574ed6922873d187687acef7401b507f8de 100644
--- a/Source/web/WebKit.cpp
+++ b/Source/web/WebKit.cpp
@@ -202,12 +202,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);
shutdownWithoutV8();
}
« no previous file with comments | « Source/modules/indexeddb/InspectorIndexedDBAgent.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698