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

Comparing jsr166/src/test/loops/UncheckedLockLoops.java (file contents):
Revision 1.5 by jsr166, Mon Nov 2 23:42:47 2009 UTC vs.
Revision 1.7 by jsr166, Thu Sep 16 03:57:13 2010 UTC

# Line 155 | Line 155 | public final class UncheckedLockLoops {
155              if (print) {
156                  long tpi = time / (iters * nthreads);
157                  System.out.print("\t" + LoopHelpers.rightJustify(tpi) + " ns per update");
158 <                //                double secs = (double)(time) / 1000000000.0;
158 >                //                double secs = (double) time / 1000000000.0;
159                  //                System.out.print("\t " + secs + "s run time");
160                  System.out.println();
161              }
# Line 201 | Line 201 | public final class UncheckedLockLoops {
201              int sum = 0;
202              int x = 0;
203              while (n-- > 0) {
204 <                synchronized(this) {
204 >                synchronized (this) {
205                      x = setValue(LoopHelpers.compute1(getValue()));
206                  }
207                  sum += LoopHelpers.compute2(x);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines