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.8 by jsr166, Tue Mar 15 19:47:05 2011 UTC vs.
Revision 1.10 by jsr166, Thu Jan 15 18:34:19 2015 UTC

# Line 54 | Line 54 | public class MultipleProducersSingleCons
54  
55          warmup();
56          print = true;
57 <        int k = 1;
58 <        for (int i = 1; i <= maxn;) {
57 >        for (int k = 1, i = 1; i <= maxn;) {
58              System.out.println("Producers:" + i);
59              oneTest(i, ITERS);
60              if (i == k) {
# Line 121 | Line 120 | public class MultipleProducersSingleCons
120              System.out.print("SynchronousQueue        ");
121          oneRun(new SynchronousQueue<Integer>(), n, iters);
122  
124
123          Thread.sleep(100); // System.gc();
124          if (print)
125              System.out.print("SynchronousQueue(fair)  ");
# Line 147 | Line 145 | public class MultipleProducersSingleCons
145              System.out.print("ArrayBlockingQueue(fair)");
146          oneRun(new ArrayBlockingQueue<Integer>(POOL_SIZE, true), n, fairIters);
147  
150
148      }
149  
150      abstract static class Stage implements Runnable {
# Line 230 | Line 227 | public class MultipleProducersSingleCons
227  
228      }
229  
233
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