-
Task
-
Resolution: Fixed
-
P2
-
None
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.
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.
- relates to
-
JDK-8151532 Add support for module aware agents introduced regression for CompiledMethodLoad event
-
- Resolved
-
-
JDK-8172969 JVMTI spec: GetCurrentThread may return NULL in the early start phase
-
- Closed
-
-
JDK-8172970 TESTBUG: need test coverage for the JVMTI functions allowed in the start phase
-
- Resolved
-
-
JDK-8150758 [TESTBUG] need jvmti tests for module aware agents
-
- Resolved
-
-
JDK-8153749 New capability can_generate_early_class_hook_events
-
- Resolved
-
-
JDK-8155207 Updates for module aware agents
-
- Closed
-
(1 relates to)