Index: runtime/vm/code_generator.cc |
diff --git a/runtime/vm/code_generator.cc b/runtime/vm/code_generator.cc |
index 60a3ab301e2dc50e0572fa8f560a3ba41585145b..41175a72f4e4da6ec19ea601d977ff216b75549a 100644 |
--- a/runtime/vm/code_generator.cc |
+++ b/runtime/vm/code_generator.cc |
@@ -1452,7 +1452,7 @@ DEFINE_RUNTIME_ENTRY(OptimizeInvokedFunction, 1) { |
// prevent recursive triggering of function optimization. |
function.set_usage_counter(0); |
if (FLAG_background_compilation) { |
- BackgroundCompiler::EnsureInit(isolate); |
+ BackgroundCompiler::EnsureInit(thread); |
ASSERT(isolate->background_compiler() != NULL); |
isolate->background_compiler()->CompileOptimized(function); |
// Continue in the same code. |