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

Unified Diff: runtime/vm/flow_graph_inliner.cc

Issue 1672873003: Bailout if field state changed during background compilation. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: a Created 4 years, 10 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
Index: runtime/vm/flow_graph_inliner.cc
diff --git a/runtime/vm/flow_graph_inliner.cc b/runtime/vm/flow_graph_inliner.cc
index 91563dd79fe7d1f7582ba77348c2a700a8137e7b..0ade97da9bed99208d740dd8feb4e652bae098d3 100644
--- a/runtime/vm/flow_graph_inliner.cc
+++ b/runtime/vm/flow_graph_inliner.cc
@@ -707,6 +707,10 @@ class CallSiteInliner : public ValueObject {
new(Z) ZoneGrowableArray<const ICData*>();
const bool clone_descriptors = Compiler::IsBackgroundCompilation();
function.RestoreICDataMap(ic_data_array, clone_descriptors);
+ if (Compiler::IsBackgroundCompilation() &&
+ (function.ic_data_array() == Array::null())) {
+ Compiler::AbortBackgroundCompilation(Thread::kNoDeoptId);
+ }
// Build the callee graph.
InlineExitCollector* exit_collector =

Powered by Google App Engine
This is Rietveld 408576698