Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8055785

Modifications of I/O methods for instrumentation purposes

XMLWordPrintable

      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.

            bpb Brian Burkhalter
            bpb Brian Burkhalter
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: