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

Unified Diff: runtime/vm/object.cc

Issue 1821283002: Fix background compilation: handle compilation abort during parsing. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: t Created 4 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 | « runtime/vm/compiler.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/object.cc
diff --git a/runtime/vm/object.cc b/runtime/vm/object.cc
index d76324660d3ac9400b7bb7762eb411d226da3cc0..9faf98743e6d331cc60075ad09d2b0b306c006fc 100644
--- a/runtime/vm/object.cc
+++ b/runtime/vm/object.cc
@@ -2982,6 +2982,9 @@ RawError* Class::EnsureIsFinalized(Thread* thread) const {
if (is_finalized()) {
return Error::null();
}
+ if (Compiler::IsBackgroundCompilation()) {
+ Compiler::AbortBackgroundCompilation(Thread::kNoDeoptId);
+ }
ASSERT(thread->IsMutatorThread());
ASSERT(thread != NULL);
const Error& error = Error::Handle(
« no previous file with comments | « runtime/vm/compiler.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698