| Index: src/runtime.cc
|
| diff --git a/src/runtime.cc b/src/runtime.cc
|
| index 8d84fdace2562f4f6f834940706f298bfdf481a5..d60806c5af7d87160f8e6305f5e004ff30eca59e 100644
|
| --- a/src/runtime.cc
|
| +++ b/src/runtime.cc
|
| @@ -8541,7 +8541,8 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_OptimizeFunctionOnNextCall) {
|
| unoptimized->set_allow_osr_at_loop_nesting_level(i);
|
| isolate->runtime_profiler()->AttemptOnStackReplacement(*function);
|
| }
|
| - } else if (type->IsOneByteEqualTo(STATIC_ASCII_VECTOR("concurrent"))) {
|
| + } else if (type->IsOneByteEqualTo(STATIC_ASCII_VECTOR("concurrent")) &&
|
| + isolate->concurrent_recompilation_enabled()) {
|
| function->MarkForConcurrentRecompilation();
|
| }
|
| }
|
|
|