From: yangguo@chromium.org Date: Thu, 18 Apr 2013 14:34:34 +0000 (+0000) Subject: Do not choose parallel recompilation when bootstrapping. X-Git-Tag: upstream/4.7.83~14525 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ecbbf528c07dcd0945f64c79f2ab6fa31b419ca0;p=platform%2Fupstream%2Fv8.git Do not choose parallel recompilation when bootstrapping. R=jkummerow@chromium.org BUG= Review URL: https://chromiumcodereview.appspot.com/13878019 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@14333 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- diff --git a/src/runtime-profiler.cc b/src/runtime-profiler.cc index 752d79c..95e86b1 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();