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

Unified Diff: runtime/vm/thread_registry.cc

Issue 1386503002: Initial design for background compilation (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Cleanup Created 5 years, 3 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
« runtime/vm/compiler.cc ('K') | « runtime/vm/isolate.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/thread_registry.cc
diff --git a/runtime/vm/thread_registry.cc b/runtime/vm/thread_registry.cc
index 44c0d133460cd1aa7afda44e1d453d0a9759debe..24445162a5f2bcb5e3cba405bbd84aa758329cd3 100644
--- a/runtime/vm/thread_registry.cc
+++ b/runtime/vm/thread_registry.cc
@@ -4,6 +4,7 @@
#include "vm/thread_registry.h"
+#include "vm/compiler.h"
#include "vm/isolate.h"
#include "vm/lockers.h"
@@ -37,6 +38,11 @@ void ThreadRegistry::SafepointThreads() {
if (!isolate->MutatorThreadIsCurrentThread()) {
isolate->ScheduleInterrupts(Isolate::kVMInterrupt);
}
+ if (isolate->compile_optimized_task() != NULL) {
+ // Make sure the task moves from Wait to a safepoint.
koda 2015/10/01 22:27:02 This should not be needed anymore, now that you en
srdjan 2015/10/01 23:11:24 Done.
+ MonitorLocker ml_comp(isolate->compile_optimized_task()->monitor());
+ ml_comp.Notify();
+ }
while (remaining_ > 0) {
ml.Wait(Monitor::kNoTimeout);
}
« runtime/vm/compiler.cc ('K') | « runtime/vm/isolate.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698