JDK RFR of 8054720: Modifications of I/O methods for instrumentation purposes