# | 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 |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |