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

Unified Diff: runtime/vm/isolate_reload.cc

Issue 2754113002: Address Siva's DBC (Closed)
Patch Set: Created 3 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/isolate_reload.cc
diff --git a/runtime/vm/isolate_reload.cc b/runtime/vm/isolate_reload.cc
index a0542e5907967f49e727f1a8bedce12ef1c2842b..b044daa76b83ba2c2b058fee5229b4e1e95884f0 100644
--- a/runtime/vm/isolate_reload.cc
+++ b/runtime/vm/isolate_reload.cc
@@ -634,8 +634,6 @@ void IsolateReloadContext::Reload(bool force_reload,
// WEIRD CONTROL FLOW ENDS.
TIR_Print("---- EXITED TAG HANDLER\n");
- BackgroundCompiler::Enable();
-
if (result.IsUnwindError()) {
// We can only propagate errors when there are Dart frames on the stack.
// TODO(johnmccutchan): Fix dartbug.com/29092.
@@ -725,6 +723,8 @@ void IsolateReloadContext::FinalizeFailedLoad(const Error& error) {
void IsolateReloadContext::CommonFinalizeTail() {
ReportOnJSON(js_);
reload_finalized_ = true;
+ // As a final step, re-enable the background compiler.
+ BackgroundCompiler::Enable();
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698