--- jsr166/src/test/tck/JSR166TestCase.java 2015/09/06 21:14:12 1.139 +++ jsr166/src/test/tck/JSR166TestCase.java 2015/09/08 16:53:43 1.142 @@ -379,6 +379,7 @@ public class JSR166TestCase extends Test "LongAdderTest", "SplittableRandomTest", "StampedLockTest", + "SubmissionPublisherTest", "ThreadLocalRandom8Test", }; addNamedTestClasses(suite, java8TestClassNames); @@ -387,7 +388,7 @@ public class JSR166TestCase extends Test // Java9+ test classes if (atLeastJava9()) { String[] java9TestClassNames = { - // Currently empty + // Currently empty, but expecting varhandle tests }; addNamedTestClasses(suite, java9TestClassNames); } @@ -743,20 +744,20 @@ public class JSR166TestCase extends Test } /** Like Runnable, but with the freedom to throw anything */ - interface Thunk { public void run() throws Throwable; } + interface Action { public void run() throws Throwable; } /** - * Runs all the given tasks in parallel, failing if any fail. + * Runs all the given actions in parallel, failing if any fail. * Useful for running multiple variants of tests that are * necessarily individually slow because they must block. */ - void testInParallel(Thunk ... thunks) { + void testInParallel(Action ... actions) { ExecutorService pool = Executors.newCachedThreadPool(); try { - ArrayList> futures = new ArrayList<>(thunks.length); - for (final Thunk thunk : thunks) + ArrayList> futures = new ArrayList<>(actions.length); + for (final Action action : actions) futures.add(pool.submit(new CheckedRunnable() { - public void realRun() throws Throwable { thunk.run();}})); + public void realRun() throws Throwable { action.run();}})); for (Future future : futures) try { assertNull(future.get(LONG_DELAY_MS, MILLISECONDS));