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

Unified Diff: runtime/vm/isolate.cc

Issue 1754703008: Clear fields sticky_error and pending_functions when unscheduling thread; enable background compila… (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: t 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/flag_list.h ('k') | no next file » | 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 70cca1ab368e7c03d20569c3f4be49ce83ecb902..8126882dc38fdcfe146d96424d96c3060e0261e1 100644
--- a/runtime/vm/isolate.cc
+++ b/runtime/vm/isolate.cc
@@ -2603,6 +2603,7 @@ void Isolate::UnscheduleThread(Thread* thread,
thread->set_os_thread(NULL);
thread->set_execution_state(Thread::kThreadInVM);
thread->set_safepoint_state(0);
+ thread->clear_pending_functions();
ASSERT(thread->no_safepoint_scope_depth() == 0);
// Return thread structure.
thread_registry()->ReturnThreadLocked(is_mutator, thread);
« no previous file with comments | « runtime/vm/flag_list.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698