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

Comparing jsr166/src/test/loops/NQueensCS.java (file contents):
Revision 1.2 by jsr166, Thu Oct 29 23:09:07 2009 UTC vs.
Revision 1.4 by jsr166, Tue Nov 3 01:04:02 2009 UTC

# Line 35 | Line 35 | public final class NQueensCS extends Rec
35              return;
36          }
37          for (int reps = 0; reps < 2; ++reps) {
38 <            ForkJoinPool g = procs == 0? new ForkJoinPool() :
38 >            ForkJoinPool g = (procs == 0) ?
39 >                new ForkJoinPool() :
40                  new ForkJoinPool(procs);
41              lastStealCount = g.getStealCount();
42              for (int i = FIRST_SIZE; i <= LAST_SIZE; i++)
# Line 53 | Line 54 | public final class NQueensCS extends Rec
54          g.invoke(task);
55          int solutions = task.solutions;
56          long time = System.nanoTime() - start;
57 <        double secs = ((double)time) / NPS;
57 >        double secs = (double) time / NPS;
58          if (solutions != expectedSolutions[i])
59              throw new Error();
60          System.out.printf("NQueensCS %3d", i);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines