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

Comparing jsr166/src/test/loops/OfferPollLoops.java (file contents):
Revision 1.4 by dl, Sun Sep 19 12:55:37 2010 UTC vs.
Revision 1.7 by jsr166, Thu Dec 18 18:13:06 2014 UTC

# Line 1 | Line 1
1   /*
2   * Written by Doug Lea with assistance from members of JCP JSR-166
3   * Expert Group and released to the public domain, as explained at
4 < * http://creativecommons.org/licenses/publicdomain
4 > * http://creativecommons.org/publicdomain/zero/1.0/
5   */
6  
7   import java.util.*;
# Line 54 | Line 54 | public class OfferPollLoops {
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("Pairs:" + i);
59              oneTest(i, ITERS);
60              if (i == k) {
# Line 139 | Line 138 | public class OfferPollLoops {
138  
139      }
140  
141 <    static abstract class Stage implements Runnable {
141 >    abstract static class Stage implements Runnable {
142          final int iters;
143          final Queue<Integer> queue;
144          final CyclicBarrier barrier;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines