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

Comparing jsr166/src/test/loops/LeftSpineFib.java (file contents):
Revision 1.1 by dl, Sun Sep 19 12:55:37 2010 UTC vs.
Revision 1.2 by jsr166, Mon Sep 20 20:42:37 2010 UTC

# Line 7 | Line 7 | public final class LeftSpineFib extends
7      // Performance-tuning constant:
8      static int sequentialThreshold;
9      static long lastStealCount;
10 <  
10 >
11      public static void main(String[] args) throws Exception {
12          int procs = 0;
13          int num = 45;
# Line 17 | Line 17 | public final class LeftSpineFib extends
17                  procs = Integer.parseInt(args[0]);
18              if (args.length > 1)
19                  num = Integer.parseInt(args[1]);
20 <            if (args.length > 2)
20 >            if (args.length > 2)
21                  sequentialThreshold = Integer.parseInt(args[2]);
22          }
23          catch (Exception e) {
# Line 25 | Line 25 | public final class LeftSpineFib extends
25              return;
26          }
27  
28 <        
28 >
29          for (int reps = 0; reps < 2; ++reps) {
30 <            ForkJoinPool g = procs == 0? new ForkJoinPool() :
30 >            ForkJoinPool g = procs == 0? new ForkJoinPool() :
31                  new ForkJoinPool(procs);
32              //            g.setMaintainsParallelism(false);
33              lastStealCount = g.getStealCount();

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines