Index: src/runtime.cc |
diff --git a/src/runtime.cc b/src/runtime.cc |
index 081774f21a614d5ea61234735c7789098aa7da2c..1283daaa4cfcb10519ec3d71e3e6823da3d4d3c0 100644 |
--- a/src/runtime.cc |
+++ b/src/runtime.cc |
@@ -8315,7 +8315,9 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_CompleteOptimization) { |
CONVERT_ARG_HANDLE_CHECKED(JSFunction, function, 0); |
if (FLAG_parallel_recompilation && V8::UseCrankshaft()) { |
// While function is in optimization pipeline, it is marked with builtins. |
Hannes Payer (out of office)
2013/07/01 08:54:26
Can we update the comment with the description you
|
- while (function->code()->kind() == Code::BUILTIN) { |
+ while (function->IsMarkedForParallelRecompilation() || |
+ function->IsInRecompileQueue() || |
+ function->IsMarkedForInstallingRecompiledCode()) { |
isolate->optimizing_compiler_thread()->InstallOptimizedFunctions(); |
OS::Sleep(50); |
} |