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

Unified Diff: runtime/vm/isolate.cc

Issue 1411403002: Cleanups (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 2 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 | « runtime/vm/handles.cc ('k') | runtime/vm/zone.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/isolate.cc
diff --git a/runtime/vm/isolate.cc b/runtime/vm/isolate.cc
index b18b50c6017f12a4be4c65707deb0e8112b1ee64..b5bbdf602bc597f9ac2c12847bf59f2696da2b40 100644
--- a/runtime/vm/isolate.cc
+++ b/runtime/vm/isolate.cc
@@ -1658,6 +1658,9 @@ void Isolate::Shutdown() {
}
#endif // DEBUG
+ // Wait until all background compilation has finished.
+ BackgroundCompiler::Stop(background_compiler_);
+
Thread* thread = Thread::Current();
// First, perform higher-level cleanup that may need to allocate.
@@ -1706,8 +1709,6 @@ void Isolate::Shutdown() {
}
#endif
- BackgroundCompiler::Stop(background_compiler_);
-
// TODO(5411455): For now just make sure there are no current isolates
// as we are shutting down the isolate.
Thread::ExitIsolate();
« no previous file with comments | « runtime/vm/handles.cc ('k') | runtime/vm/zone.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698