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.4 by jsr166, Tue Nov 3 01:04:02 2009 UTC vs.
Revision 1.6 by jsr166, Mon Sep 20 20:42:37 2010 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) ?
39 <                new ForkJoinPool() :
38 >            ForkJoinPool g = procs == 0? new ForkJoinPool() :
39                  new ForkJoinPool(procs);
40              lastStealCount = g.getStealCount();
41              for (int i = FIRST_SIZE; i <= LAST_SIZE; i++)
# Line 54 | Line 53 | public final class NQueensCS extends Rec
53          g.invoke(task);
54          int solutions = task.solutions;
55          long time = System.nanoTime() - start;
56 <        double secs = (double) time / NPS;
56 >        double secs = ((double)time) / NPS;
57          if (solutions != expectedSolutions[i])
58              throw new Error();
59          System.out.printf("NQueensCS %3d", i);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines