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

Add support for module aware agents

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Fixed
    • Icon: P2 P2
    • 9
    • None
    • core-svc

      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.


        There are no Sub-Tasks for this issue.

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

              Created:
              Updated:
              Resolved: