--- jsr166/src/test/tck/AtomicLongArrayTest.java 2013/05/30 03:28:55 1.26 +++ jsr166/src/test/tck/AtomicLongArrayTest.java 2013/09/24 18:50:44 1.27 @@ -271,8 +271,6 @@ public class AtomicLongArrayTest extends } } - static final long COUNTDOWN = 100000; - class Counter extends CheckedRunnable { final AtomicLongArray aa; volatile long counts; @@ -301,8 +299,9 @@ public class AtomicLongArrayTest extends */ public void testCountingInMultipleThreads() throws InterruptedException { final AtomicLongArray aa = new AtomicLongArray(SIZE); + long countdown = 10000; for (int i = 0; i < SIZE; i++) - aa.set(i, COUNTDOWN); + aa.set(i, countdown); Counter c1 = new Counter(aa); Counter c2 = new Counter(aa); Thread t1 = new Thread(c1); @@ -311,7 +310,7 @@ public class AtomicLongArrayTest extends t2.start(); t1.join(); t2.join(); - assertEquals(c1.counts+c2.counts, SIZE * COUNTDOWN); + assertEquals(c1.counts+c2.counts, SIZE * countdown); } /**