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

Modifications of I/O methods for instrumentation purposes

    XMLWordPrintable

    Details

    • Type: Backport
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 9
    • Fix Version/s: 8u40
    • Component/s: core-libs
    • Labels:

      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.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved: