RFR: 8365400: enhance JFR to emit file and module metadata for class loading

Markus Grönlund mgronlun at openjdk.org
Fri Oct 10 09:27:24 UTC 2025


On Thu, 9 Oct 2025 21:04:41 GMT, Larry Cable <duke at openjdk.org> wrote:

> the existing` jdk.classDefine` and `jdk.ClassLoad` events do not include metadata regarding the location/source of the ClassFile.
> 
> The location of the class file for a class defined can be of utility in both debugging and auditing.
> 
> this addition introduces a new `jdk.ClassFileDefine` event which records the class defined and the location (path/url) of the class file that contained the implementation thereof

Introducing a separate jdk.ClassFileDefine event seems gratuitous. Why is it not enabled by default? 

What problem is being addressed again?

-------------

PR Comment: https://git.openjdk.org/jdk/pull/27738#issuecomment-3389043586


More information about the hotspot-dev mailing list