< prev index next >

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

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

@@ -1037,6 +1037,10 @@
     }
     n = NET_Send(fd, (char *)&d, 1, MSG_OOB);
     if (n == -1) {
         JNU_ThrowIOExceptionWithLastError(env, "Write failed");
     }
+
+    if (n > 0) {
+        JVM_callNetworkWriteBytes(env, n);
+    }
 }
< prev index next >