Index: src/runtime-profiler.cc |
diff --git a/src/runtime-profiler.cc b/src/runtime-profiler.cc |
index 752d79c982a781655d1984e773b0245424e19085..95e86b119c303ac8794e97a4416d8c5a6008cf49 100644 |
--- a/src/runtime-profiler.cc |
+++ b/src/runtime-profiler.cc |
@@ -30,6 +30,7 @@ |
#include "runtime-profiler.h" |
#include "assembler.h" |
+#include "bootstrapper.h" |
#include "code-stubs.h" |
#include "compilation-cache.h" |
#include "deoptimizer.h" |
@@ -134,7 +135,7 @@ void RuntimeProfiler::Optimize(JSFunction* function, const char* reason) { |
PrintF("]\n"); |
} |
- if (FLAG_parallel_recompilation) { |
+ if (FLAG_parallel_recompilation && !isolate_->bootstrapper()->IsActive()) { |
ASSERT(!function->IsMarkedForInstallingRecompiledCode()); |
ASSERT(!function->IsInRecompileQueue()); |
function->MarkForParallelRecompilation(); |