--- jsr166/src/test/loops/NoopLockLoops.java 2007/02/19 00:46:06 1.2 +++ jsr166/src/test/loops/NoopLockLoops.java 2009/10/29 23:09:07 1.3 @@ -16,7 +16,7 @@ public final class NoopLockLoops { public static void main(String[] args) throws Exception { int maxThreads = 100; - if (args.length > 0) + if (args.length > 0) maxThreads = Integer.parseInt(args[0]); new ReentrantLockLoop(1).test(); @@ -31,8 +31,8 @@ public final class NoopLockLoops { if (i == k) { k = i << 1; i = i + (i >>> 1); - } - else + } + else i = k; } pool.shutdown(); @@ -51,7 +51,7 @@ public final class NoopLockLoops { } final void test() throws Exception { - for (int i = 0; i < nthreads; ++i) + for (int i = 0; i < nthreads; ++i) pool.execute(this); barrier.await(); barrier.await(); @@ -70,7 +70,7 @@ public final class NoopLockLoops { public final void run() { try { - barrier.await(); + barrier.await(); int sum = v + 1; int x = sum + 1; int n = iters; @@ -86,11 +86,10 @@ public final class NoopLockLoops { barrier.await(); result += sum; } - catch (Exception ie) { - return; + catch (Exception ie) { + return; } } } } -