Commit 5681ef6f authored by yangguo@chromium.org's avatar yangguo@chromium.org

Actually increment queue length for parallel recompile queue.

R=jkummerow@chromium.org
BUG=

Review URL: https://chromiumcodereview.appspot.com/12039088

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@13521 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 47d2fa5c
...@@ -135,6 +135,8 @@ Handle<SharedFunctionInfo> ...@@ -135,6 +135,8 @@ Handle<SharedFunctionInfo>
void OptimizingCompilerThread::QueueForOptimization( void OptimizingCompilerThread::QueueForOptimization(
OptimizingCompiler* optimizing_compiler) { OptimizingCompiler* optimizing_compiler) {
ASSERT(IsQueueAvailable());
Barrier_AtomicIncrement(&queue_length_, static_cast<Atomic32>(1));
input_queue_.Enqueue(optimizing_compiler); input_queue_.Enqueue(optimizing_compiler);
input_queue_semaphore_->Signal(); input_queue_semaphore_->Signal();
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment