mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
8286689: (se) Adjusting to select timeout after EINTR messed up after JDK-8286378
Reviewed-by: dfuchs, alanb
This commit is contained in:
parent
6a1b09898d
commit
0be1f3e1b0
3 changed files with 3 additions and 3 deletions
|
@ -125,7 +125,7 @@ class EPollSelectorImpl extends SelectorImpl {
|
|||
if (numEntries == IOStatus.INTERRUPTED && timedPoll) {
|
||||
// timed poll interrupted so need to adjust timeout
|
||||
long adjust = System.nanoTime() - startTime;
|
||||
to =- (int) TimeUnit.NANOSECONDS.toMillis(adjust);
|
||||
to -= (int) TimeUnit.NANOSECONDS.toMillis(adjust);
|
||||
if (to <= 0) {
|
||||
// timeout expired so no retry
|
||||
numEntries = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue