--- jsr166/src/test/loops/TimeoutLockLoops.java 2005/05/02 19:19:38 1.1 +++ jsr166/src/test/loops/TimeoutLockLoops.java 2009/10/29 23:09:08 1.4 @@ -1,5 +1,10 @@ /* - * @test %I% %E% + * Written by Doug Lea with assistance from members of JCP JSR-166 + * Expert Group and released to the public domain, as explained at + * http://creativecommons.org/licenses/publicdomain + */ +/* + * @test * @bug 4486658 * @compile -source 1.5 TimeoutLockLoops.java * @run main TimeoutLockLoops @@ -18,11 +23,11 @@ public final class TimeoutLockLoops { static final LoopHelpers.SimpleRandom rng = new LoopHelpers.SimpleRandom(); static boolean print = false; static final int ITERS = Integer.MAX_VALUE; - static final long TIMEOUT = 100; + static final long TIMEOUT = 100; public static void main(String[] args) throws Exception { int maxThreads = 100; - if (args.length > 0) + if (args.length > 0) maxThreads = Integer.parseInt(args[0]); print = true; @@ -74,7 +79,7 @@ public final class TimeoutLockLoops { public final void run() { try { - barrier.await(); + barrier.await(); int sum = v; int x = 17; int n = ITERS; @@ -99,9 +104,9 @@ public final class TimeoutLockLoops { barrier.await(); result += sum; } - catch (Exception ex) { + catch (Exception ex) { ex.printStackTrace(); - return; + return; } } }