jdk/src/share/classes/sun/nio/ch/SocketChannelImpl.java
changeset 16921 e70261f11307
parent 14025 fbebe005a3ee
child 18192 fa6bd0992104
--- a/jdk/src/share/classes/sun/nio/ch/SocketChannelImpl.java	Wed Apr 17 02:53:02 2013 -0700
+++ b/jdk/src/share/classes/sun/nio/ch/SocketChannelImpl.java	Wed Apr 17 16:11:19 2013 +0100
@@ -356,7 +356,7 @@
                 // except that the shutdown operation plays the role of
                 // nd.preClose().
                 for (;;) {
-                    n = IOUtil.read(fd, buf, -1, nd, readLock);
+                    n = IOUtil.read(fd, buf, -1, nd);
                     if ((n == IOStatus.INTERRUPTED) && isOpen()) {
                         // The system call was interrupted but the channel
                         // is still open, so retry
@@ -447,7 +447,7 @@
                     writerThread = NativeThread.current();
                 }
                 for (;;) {
-                    n = IOUtil.write(fd, buf, -1, nd, writeLock);
+                    n = IOUtil.write(fd, buf, -1, nd);
                     if ((n == IOStatus.INTERRUPTED) && isOpen())
                         continue;
                     return IOStatus.normalize(n);