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

Add support for module aware agents

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Resolved
    • Priority: P2
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 9
    • Component/s: core-svc
    • Labels:

      Description

      This task tracks the updates to JVM TI and java.lang.instrument to allow agents instrument code in named modules. Specifically it requires:

      1. Adding support for an early JVM TI Start phase to allow agents get CFLH early during VM and module system initialisation.

      2. Investigating whether the CompiledMethodLoad and DynamicCodeGenerated event can be sent in the Start phase.

      3. Adding a new transform method to ClassFileTransformer that provides the transformer with the Module of the class that is being loaded/redefined.

      4. Agents doing dynamic instrumentation cannot add class initializers and so will likely need a way to add arbitrary read edges. JVM TI agents can use the JNI functions to do that. Java agents will need further consideration.


        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                sspitsyn Serguei Spitsyn
                Reporter:
                alanb Alan Bateman
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: