< prev index next >

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

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

@@ -102,10 +102,11 @@
             break;
         } else {
             while(llen > 0) {
                 int n = NET_Send(fd, bufP + loff, llen, 0);
                 if (n > 0) {
+                    JVM_callNetworkWriteBytes(env, n);
                     llen -= n;
                     loff += n;
                     continue;
                 }
                 JNU_ThrowByNameWithMessageAndLastError
< prev index next >