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

Comparing jsr166/src/test/loops/ConcurrentQueueLoops.java (file contents):
Revision 1.15 by jsr166, Thu Dec 18 18:13:06 2014 UTC vs.
Revision 1.16 by jsr166, Thu Dec 18 18:43:22 2014 UTC

# Line 21 | Line 21 | public class ConcurrentQueueLoops {
21      public static void main(String[] args) throws Exception {
22          int maxStages = 100;
23          int work = 1024;
24 <        Class klass = null;
24 >        Class<?> klass = null;
25          if (args.length > 0) {
26              try {
27                  klass = Class.forName(args[0]);
# Line 116 | Line 116 | public class ConcurrentQueueLoops {
116          }
117      }
118  
119 <    static void oneRun(Class klass, int n) throws Exception {
119 >    static void oneRun(Class<?> klass, int n) throws Exception {
120          Queue<Integer> q = (Queue<Integer>) klass.newInstance();
121          LoopHelpers.BarrierTimer timer = new LoopHelpers.BarrierTimer();
122          CyclicBarrier barrier = new CyclicBarrier(n + 1, timer);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines