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
This commit is contained in:
yangguo@chromium.org 2013-01-25 15:54:19 +00:00
parent 47d2fa5c51
commit 5681ef6fee

View File

@ -135,6 +135,8 @@ Handle<SharedFunctionInfo>
void OptimizingCompilerThread::QueueForOptimization(
OptimizingCompiler* optimizing_compiler) {
ASSERT(IsQueueAvailable());
Barrier_AtomicIncrement(&queue_length_, static_cast<Atomic32>(1));
input_queue_.Enqueue(optimizing_compiler);
input_queue_semaphore_->Signal();
}