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

Comparing jsr166/src/test/loops/LockLoops.java (file contents):
Revision 1.3 by jsr166, Thu Oct 29 23:09:07 2009 UTC vs.
Revision 1.5 by jsr166, Thu Sep 16 03:57:13 2010 UTC

# Line 150 | Line 150 | public final class LockLoops {
150              if (print) {
151                  long tpi = time / (iters * nthreads);
152                  System.out.print("\t" + LoopHelpers.rightJustify(tpi) + " ns per update");
153 <                //                double secs = (double)(time) / 1000000000.0;
153 >                //                double secs = (double) time / 1000000000.0;
154                  //                System.out.print("\t " + secs + "s run time");
155                  System.out.println();
156              }
# Line 176 | Line 176 | public final class LockLoops {
176          final int loop(int n) {
177              int sum = 0;
178              while (n-- > 0) {
179 <                synchronized(this) {
179 >                synchronized (this) {
180                      v = LoopHelpers.compute1(v);
181                  }
182                  sum += LoopHelpers.compute2(v);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines