JDK-8054720 : Modifications of I/O methods for instrumentation purposes
  • Type: Enhancement
  • Component: core-libs
  • Sub-Component: java.io
  • Affected Version: 9
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2014-08-08
  • Updated: 2016-11-10
  • Resolved: 2014-08-20
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 8 JDK 9
8u40Fixed 9 b29Fixed
Related Reports
Relates :  
Relates :  
Relates :  
Description
Instrumentation agents that want to instrument FileInputStream, FileOutputStream, RandomAccessFile, and SocketInputStream in order to track when files are opened and when bytes are read from a socket cannot do so at present as the implementing methods are native. The proposed change is to apply a consistent naming convention to the native methods and to create Java methods which wrap the respective native methods thereby allowing instrumentation to occur. The implementation is usable by any agents wishing to monitor these functions.
Comments
Final review thread http://mail.openjdk.java.net/pipermail/core-libs-dev/2014-August/028301.html.
21-08-2014

Review thread: http://mail.openjdk.java.net/pipermail/core-libs-dev/2014-August/028181.html Patch: http://cr.openjdk.java.net/~bpb/8054720/
11-08-2014

Is there is a webrev or patch anywhere with more details as to what is proposed here?
09-08-2014