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()); |