JDK-8155207 : Updates for module aware agents
  • Type: Enhancement
  • Component: core-svc
  • Sub-Component: java.lang.instrument
  • Affected Version: 9
  • Priority: P3
  • Status: Closed
  • Resolution: Not an Issue
  • OS: generic
  • CPU: generic
  • Submitted: 2016-04-27
  • Updated: 2016-06-09
  • Resolved: 2016-06-09
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 9
9Resolved
Related Reports
Relates :  
Description
Input from Alan:

Most of the support for module aware agents went into JDK 9 as part of the module system in jdk-9+111. JDK-8153749 is in progress to add an additional capability that will allow agents get the CFLH in the primordial phase.

Remaining issues that need examination are:

1. There is currently isn't a way for agents to get the Module in a ClassFileLoadHook event for a class load (for a retransform then class_being_redefined is non-NULL and so the agent can use JNI GetModule).

2. Should the new transform method in ClassFileTransformer provide the ClassLoader in addition to the Module? 
Comments
I will create new issues to track the specific issues.
09-06-2016

For JVM TI then we need to promote JVM_GetModuleByPackageName to a JVM TI function.
08-06-2016