--- jsr166/src/test/tck/ReentrantReadWriteLockTest.java 2011/05/02 00:06:45 1.48 +++ jsr166/src/test/tck/ReentrantReadWriteLockTest.java 2011/05/02 00:11:34 1.50 @@ -259,6 +259,7 @@ public class ReentrantReadWriteLockTest Thread.sleep(SHORT_DELAY_MS); t.interrupt(); t.join(); + releaseLock(lock.writeLock()); } @@ -681,9 +682,8 @@ public class ReentrantReadWriteLockTest Thread.sleep(SHORT_DELAY_MS); t.interrupt(); - Thread.sleep(SHORT_DELAY_MS); t.join(); - lock.writeLock().unlock(); + releaseLock(lock.writeLock()); } /**