# | Line 411 | Line 411 | public class FutureTask<V> implements Ru | |
---|---|---|
411 | } | |
412 | parkNanos = nanos - elapsed; | |
413 | } | |
414 | < | LockSupport.parkNanos(this, parkNanos); |
414 | > | // nanoTime may be slow; recheck before parking |
415 | > | if (state < COMPLETING) |
416 | > | LockSupport.parkNanos(this, parkNanos); |
417 | } | |
418 | else | |
419 | LockSupport.park(this); |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |