From 3e5a46ef0136e93eab6bf2e8d2225a2ef1346c21 Mon Sep 17 00:00:00 2001 From: Claes Redestad Date: Mon, 18 Apr 2016 16:49:08 +0200 Subject: [PATCH] 8154455: Fix compilation issue in WindowsAsynchronousSocketChannelImpl Reviewed-by: alanb, chegar --- .../ch/WindowsAsynchronousSocketChannelImpl.java | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/jdk/src/java.base/windows/classes/sun/nio/ch/WindowsAsynchronousSocketChannelImpl.java b/jdk/src/java.base/windows/classes/sun/nio/ch/WindowsAsynchronousSocketChannelImpl.java index c12575251ca..d03f0f3680b 100644 --- a/jdk/src/java.base/windows/classes/sun/nio/ch/WindowsAsynchronousSocketChannelImpl.java +++ b/jdk/src/java.base/windows/classes/sun/nio/ch/WindowsAsynchronousSocketChannelImpl.java @@ -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; }