< prev index next >
src/java.base/unix/native/libnio/ch/DatagramChannelImpl.c
Print this page
rev 53271 : 8216981: Per thread IO statistics in JFR
*** 157,166 ****
--- 157,168 ----
return IOS_THROWN;
}
} else {
return handleSocketError(env, errno);
}
+ } else if (n > 0) {
+ JVM_callNetworkReadBytes(env, n);
}
} while (retry == JNI_TRUE);
/*
* If the source address and port match the cached address
*** 226,233 ****
--- 228,237 ----
if (errno == ECONNREFUSED) {
JNU_ThrowByName(env, JNU_JAVANETPKG "PortUnreachableException", 0);
return IOS_THROWN;
}
return handleSocketError(env, errno);
+ } else if (n > 0) {
+ JVM_callNetworkWriteBytes(env, n);
}
return n;
}
< prev index next >