--- 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);