ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/test/tck/LockSupportTest.java
(Generate patch)

Comparing jsr166/src/test/tck/LockSupportTest.java (file contents):
Revision 1.20 by jsr166, Fri May 6 17:33:55 2011 UTC vs.
Revision 1.22 by jsr166, Fri May 27 19:44:42 2011 UTC

# Line 309 | Line 309 | public class LockSupportTest extends JSR
309          awaitTermination(t, MEDIUM_DELAY_MS);
310      }
311  
312
312      /**
313       * parkUntil times out if not unparked
314       */
# Line 342 | Line 341 | public class LockSupportTest extends JSR
341      }
342  
343      /**
344 <     * parkUntil(0) returns immediately
344 >     * parkUntil(0) returns immediately.
345 >     *
346       * Requires hotspot fix for:
347       * 6763959 java.util.concurrent.locks.LockSupport.parkUntil(0) blocks forever
348 +     * which is in jdk7-b118 and 6u25.
349       */
350 <    public void XXXXtestParkUntil0Returns() throws InterruptedException {
350 >    public void testParkUntil0Returns() throws InterruptedException {
351          Thread t = newStartedThread(new CheckedRunnable() {
352              public void realRun() {
353                  LockSupport.parkUntil(0L);
354              }});
355  
356 <        awaitTermination(t, MEDIUM_DELAY_MS);
356 >        awaitTermination(t);
357      }
358   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines