Skip to content

Commit c16a2c8

Browse files
committed
Adapt comment as proposed by Anton, took wording from his PR 3936
1 parent 58cce4b commit c16a2c8

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

src/java.base/share/classes/sun/nio/ch/SocketChannelImpl.java

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1000,17 +1000,12 @@ private void tryFinishClose() {
10001000
* operations in progress (or tracked), then the channel's socket is closed. If
10011001
* there are I/O operations in progress then the behavior is platform specific.
10021002
*
1003-
* On Unix systems, the channel's socket is pre-closed. This unparks any virtual
1004-
* threads that are blocked in I/O operations on this channel. If there are
1005-
* platform threads blocked on the channel's socket then the socket is dup'ed
1006-
* and the platform threads signalled. The final close is deferred until all I/O
1003+
* On Unix systems, the channel's socket is pre-closed. The socket is dup'ed
1004+
* and the threads signalled. The final close is deferred until all I/O
10071005
* operations complete.
10081006
*
1009-
* On Windows, the channel's socket is pre-closed. This unparks any virtual
1010-
* threads that are blocked in I/O operations on this channel. If there are no
1011-
* virtual threads blocked in I/O operations on this channel then the channel's
1012-
* socket is closed. If there are virtual threads in I/O then the final close is
1013-
* deferred until all I/O operations on virtual threads complete.
1007+
* On Windows, the channel's socket is pre-closed. The channel's
1008+
* socket is closed.
10141009
*
10151010
* Note that a channel configured blocking may be registered with a Selector
10161011
* This arises when a key is canceled and the channel configured to blocking

0 commit comments

Comments
 (0)