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

Unified Diff: runtime/vm/compiler.h

Issue 1672873003: Bailout if field state changed during background compilation. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Comment 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
« no previous file with comments | « runtime/vm/block_scheduler.cc ('k') | runtime/vm/compiler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/compiler.h
diff --git a/runtime/vm/compiler.h b/runtime/vm/compiler.h
index 4aa4249e348c644f3686f8c4803cc1eddb548f22..e193dbf856a212b72b13f5d1018980b4da5deba4 100644
--- a/runtime/vm/compiler.h
+++ b/runtime/vm/compiler.h
@@ -94,6 +94,12 @@ class Compiler : public AllStatic {
static RawError* CompileAllFunctions(const Class& cls);
static bool always_optimize();
+
+ // Notify the compiler that background (optimized) compilation has failed
+ // because the mutator thread changed the state (e.g., deoptimization,
+ // deferred loading). The background compilation may retry to compile
+ // the same function later.
+ static void AbortBackgroundCompilation(intptr_t deopt_id);
};
« no previous file with comments | « runtime/vm/block_scheduler.cc ('k') | runtime/vm/compiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698