ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/main/java/util/concurrent/FutureTask.java
(Generate patch)

Comparing jsr166/src/main/java/util/concurrent/FutureTask.java (file contents):
Revision 1.112 by jsr166, Mon Mar 23 18:48:19 2015 UTC vs.
Revision 1.113 by jsr166, Sat Oct 3 18:17:51 2015 UTC

# Line 367 | Line 367 | public class FutureTask<V> implements Ru
367          throws InterruptedException {
368          // The code below is very delicate, to achieve these goals:
369          // - call nanoTime exactly once for each call to park
370 <        // - if nanos <= 0, return promptly without allocation or nanoTime
370 >        // - if nanos <= 0L, return promptly without allocation or nanoTime
371          // - if nanos == Long.MIN_VALUE, don't underflow
372          // - if nanos == Long.MAX_VALUE, and nanoTime is non-monotonic
373          //   and we suffer a spurious wakeup, we will do no worse than

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines