ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/test/loops/MultipleProducersSingleConsumerLoops.java
(Generate patch)

Comparing jsr166/src/test/loops/MultipleProducersSingleConsumerLoops.java (file contents):
Revision 1.9 by jsr166, Thu Dec 18 18:13:06 2014 UTC vs.
Revision 1.10 by jsr166, Thu Jan 15 18:34:19 2015 UTC

# Line 120 | Line 120 | public class MultipleProducersSingleCons
120              System.out.print("SynchronousQueue        ");
121          oneRun(new SynchronousQueue<Integer>(), n, iters);
122  
123
123          Thread.sleep(100); // System.gc();
124          if (print)
125              System.out.print("SynchronousQueue(fair)  ");
# Line 146 | Line 145 | public class MultipleProducersSingleCons
145              System.out.print("ArrayBlockingQueue(fair)");
146          oneRun(new ArrayBlockingQueue<Integer>(POOL_SIZE, true), n, fairIters);
147  
149
148      }
149  
150      abstract static class Stage implements Runnable {
# Line 229 | Line 227 | public class MultipleProducersSingleCons
227  
228      }
229  
232
230      static void oneRun(BlockingQueue<Integer> q, int n, int iters) throws Exception {
231  
232          LoopHelpers.BarrierTimer timer = new LoopHelpers.BarrierTimer();

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines