changeset 14184:f3d87364cb1a

8154455: Fix compilation issue in WindowsAsynchronousSocketChannelImpl Reviewed-by: alanb, chegar
author redestad
date Mon, 18 Apr 2016 16:49:08 +0200
parents 6c46df4651c9
children 9f0bccd2ef66
files src/java.base/windows/classes/sun/nio/ch/WindowsAsynchronousSocketChannelImpl.java
diffstat 1 files changed, 2 insertions(+), 11 deletions(-) [+]
line wrap: on
line diff
--- a/src/java.base/windows/classes/sun/nio/ch/WindowsAsynchronousSocketChannelImpl.java	Mon Apr 18 16:48:12 2016 +0200
+++ b/src/java.base/windows/classes/sun/nio/ch/WindowsAsynchronousSocketChannelImpl.java	Mon Apr 18 16:49:08 2016 +0200
@@ -649,11 +649,7 @@
         }
 
         // initiate I/O
-        if (Iocp.supportsThreadAgnosticIo()) {
-            readTask.run();
-        } else {
-            Invoker.invokeOnThreadInThreadPool(this, readTask);
-        }
+        readTask.run();
         return result;
     }
 
@@ -906,13 +902,8 @@
             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;
     }