< prev index next >

test/jdk/java/util/concurrent/ThreadPoolExecutor/ThreadRestarts.java

Print this page
rev 51731 : imported patch 8210732

*** 34,52 **** /* * @test * @summary Only one thread should be created when a thread needs to * be kept alive to service a delayed task waiting in the queue. ! * @library /lib/testlibrary/ */ import static java.util.concurrent.TimeUnit.MILLISECONDS; import java.util.concurrent.ScheduledThreadPoolExecutor; import java.util.concurrent.ThreadFactory; import java.util.concurrent.atomic.AtomicLong; ! import jdk.testlibrary.Utils; public class ThreadRestarts { static final long LONG_DELAY_MS = Utils.adjustTimeout(10_000); static final long FAR_FUTURE_MS = 10 * LONG_DELAY_MS; --- 34,52 ---- /* * @test * @summary Only one thread should be created when a thread needs to * be kept alive to service a delayed task waiting in the queue. ! * @library /test/lib */ import static java.util.concurrent.TimeUnit.MILLISECONDS; import java.util.concurrent.ScheduledThreadPoolExecutor; import java.util.concurrent.ThreadFactory; import java.util.concurrent.atomic.AtomicLong; ! import jdk.test.lib.Utils; public class ThreadRestarts { static final long LONG_DELAY_MS = Utils.adjustTimeout(10_000); static final long FAR_FUTURE_MS = 10 * LONG_DELAY_MS;
< prev index next >