Revision: 13521
Author:   [email protected]
Date:     Fri Jan 25 07:54:19 2013
Log:      Actually increment queue length for parallel recompile queue.

[email protected]
BUG=

Review URL: https://chromiumcodereview.appspot.com/12039088
http://code.google.com/p/v8/source/detail?r=13521

Modified:
 /branches/bleeding_edge/src/optimizing-compiler-thread.cc

=======================================
--- /branches/bleeding_edge/src/optimizing-compiler-thread.cc Mon Nov 26 00:56:59 2012 +++ /branches/bleeding_edge/src/optimizing-compiler-thread.cc Fri Jan 25 07:54:19 2013
@@ -135,6 +135,8 @@

 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();
 }

--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev


Reply via email to