< prev index next >

src/java.base/windows/native/libnet/PlainSocketImpl.c

Print this page
rev 53271 : 8216981: Per thread IO statistics in JFR

@@ -508,10 +508,13 @@
 
     n = send(fd, (char *)&data, 1, MSG_OOB);
     if (n == SOCKET_ERROR) {
         NET_ThrowNew(env, WSAGetLastError(), "send");
     }
+    if (n > 0) {
+        JVM_callNetworkWriteBytes(env, n);
+    }
 }
 
 /*
  * Class:     java_net_PlainSocketImpl
  * Method:    configureBlocking
< prev index next >