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

Unified Diff: runtime/vm/compiler_test.cc

Issue 1454553004: Create code and instruction object, and install them in the background compilation thread while br… (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Address comments Created 5 years, 1 month 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') | runtime/vm/object.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/compiler_test.cc
diff --git a/runtime/vm/compiler_test.cc b/runtime/vm/compiler_test.cc
index 03ef98ff45afb5b03a3e616c3f3faccb156b5f14..cab15939c33e2e5112f97713103485095de6d9a7 100644
--- a/runtime/vm/compiler_test.cc
+++ b/runtime/vm/compiler_test.cc
@@ -10,6 +10,7 @@
#include "vm/object.h"
#include "vm/symbols.h"
#include "vm/thread_pool.h"
+#include "vm/thread_registry.h"
#include "vm/unit_test.h"
namespace dart {
@@ -105,7 +106,7 @@ TEST_CASE(CompileFunctionOnHelperThread) {
Monitor* m = new Monitor();
MonitorLocker ml(m);
while (!func.HasOptimizedCode()) {
- isolate->background_compiler()->InstallGeneratedCode();
+ Isolate::Current()->thread_registry()->CheckSafepoint();
ml.Wait(1);
}
BackgroundCompiler::Stop(isolate->background_compiler());
« no previous file with comments | « runtime/vm/compiler.cc ('k') | runtime/vm/object.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698