< prev index next >
test/jdk/java/util/concurrent/Executors/AutoShutdown.java
Print this page
rev 51731 : imported patch 8210732
*** 23,33 ****
/*
* @test
* @bug 6399443
* @summary Check for auto-shutdown and gc of singleThreadExecutors
! * @library /lib/testlibrary/
* @run main/othervm/timeout=1000 AutoShutdown
* @author Martin Buchholz
*/
import static java.util.concurrent.Executors.defaultThreadFactory;
--- 23,33 ----
/*
* @test
* @bug 6399443
* @summary Check for auto-shutdown and gc of singleThreadExecutors
! * @library /test/lib
* @run main/othervm/timeout=1000 AutoShutdown
* @author Martin Buchholz
*/
import static java.util.concurrent.Executors.defaultThreadFactory;
*** 39,49 ****
import java.util.Arrays;
import java.util.concurrent.ConcurrentLinkedQueue;
import java.util.concurrent.CountDownLatch;
import java.util.concurrent.Executor;
import java.util.concurrent.TimeUnit;
! import jdk.testlibrary.Utils;
public class AutoShutdown {
static final long LONG_DELAY_MS = Utils.adjustTimeout(10_000);
static void await(CountDownLatch latch) throws InterruptedException {
--- 39,49 ----
import java.util.Arrays;
import java.util.concurrent.ConcurrentLinkedQueue;
import java.util.concurrent.CountDownLatch;
import java.util.concurrent.Executor;
import java.util.concurrent.TimeUnit;
! import jdk.test.lib.Utils;
public class AutoShutdown {
static final long LONG_DELAY_MS = Utils.adjustTimeout(10_000);
static void await(CountDownLatch latch) throws InterruptedException {
< prev index next >