8154455: Fix compilation issue in WindowsAsynchronousSocketChannelImpl
Reviewed-by: alanb, chegar
This commit is contained in:
parent
194be0cffa
commit
3e5a46ef01
@ -649,11 +649,7 @@ class WindowsAsynchronousSocketChannelImpl
|
||||
}
|
||||
|
||||
// initiate I/O
|
||||
if (Iocp.supportsThreadAgnosticIo()) {
|
||||
readTask.run();
|
||||
} else {
|
||||
Invoker.invokeOnThreadInThreadPool(this, readTask);
|
||||
}
|
||||
readTask.run();
|
||||
return result;
|
||||
}
|
||||
|
||||
@ -906,13 +902,8 @@ class WindowsAsynchronousSocketChannelImpl
|
||||
result.setTimeoutTask(timeoutTask);
|
||||
}
|
||||
|
||||
// initiate I/O (can only be done from thread in thread pool)
|
||||
// initiate I/O
|
||||
if (Iocp.supportsThreadAgnosticIo()) {
|
||||
writeTask.run();
|
||||
} else {
|
||||
Invoker.invokeOnThreadInThreadPool(this, writeTask);
|
||||
}
|
||||
writeTask.run();
|
||||
return result;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user