Index: src/optimizing-compiler-thread.cc |
diff --git a/src/optimizing-compiler-thread.cc b/src/optimizing-compiler-thread.cc |
index b982b94198f617549d995699b8cd34169c95e490..1e2e0a85df11a195fdced7f8911d76055bc4d708 100644 |
--- a/src/optimizing-compiler-thread.cc |
+++ b/src/optimizing-compiler-thread.cc |
@@ -88,7 +88,9 @@ void OptimizingCompilerThread::CompileNext() { |
// The function may have already been optimized by OSR. Simply continue. |
// Mark it for installing before queuing so that we can be sure of the write |
// order: marking first and (after being queued) installing code second. |
- optimizing_compiler->info()->closure()->MarkForInstallingRecompiledCode(); |
+ { Heap::RelocationLock relocation_lock(isolate_->heap()); |
+ optimizing_compiler->info()->closure()->MarkForInstallingRecompiledCode(); |
+ } |
output_queue_.Enqueue(optimizing_compiler); |
} |