< prev index next >
test/jdk/java/util/concurrent/locks/Lock/CheckedLockLoops.java
Print this page
rev 51731 : imported patch 8210732
*** 33,43 ****
/*
* @test
* @bug 4486658
* @summary basic safety and liveness of ReentrantLocks, and other locks based on them
! * @library /lib/testlibrary/
*/
import static java.util.concurrent.TimeUnit.MILLISECONDS;
import java.util.concurrent.CyclicBarrier;
--- 33,43 ----
/*
* @test
* @bug 4486658
* @summary basic safety and liveness of ReentrantLocks, and other locks based on them
! * @library /test/lib
*/
import static java.util.concurrent.TimeUnit.MILLISECONDS;
import java.util.concurrent.CyclicBarrier;
*** 46,56 ****
import java.util.concurrent.Semaphore;
import java.util.concurrent.ThreadLocalRandom;
import java.util.concurrent.locks.Lock;
import java.util.concurrent.locks.ReentrantLock;
import java.util.concurrent.locks.ReentrantReadWriteLock;
! import jdk.testlibrary.Utils;
public final class CheckedLockLoops {
static final long LONG_DELAY_MS = Utils.adjustTimeout(10_000);
static ExecutorService pool;
--- 46,56 ----
import java.util.concurrent.Semaphore;
import java.util.concurrent.ThreadLocalRandom;
import java.util.concurrent.locks.Lock;
import java.util.concurrent.locks.ReentrantLock;
import java.util.concurrent.locks.ReentrantReadWriteLock;
! import jdk.test.lib.Utils;
public final class CheckedLockLoops {
static final long LONG_DELAY_MS = Utils.adjustTimeout(10_000);
static ExecutorService pool;
< prev index next >