RFR: 8365400: enhance JFR to emit file and module metadata for class loading [v2]
Markus Grönlund
mgronlun at openjdk.org
Sun Oct 19 12:23:05 UTC 2025
On Thu, 16 Oct 2025 19:41:15 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
>
> Larry Cable has updated the pull request incrementally with one additional commit since the last revision:
>
> added package and module entries
Package and Module information is implicitly included in the JFR model for a class (its transitive dependencies), so you do not need to include them explicitly.
I prefer that the design address how the source information is to be included for the existing events (ClassLoad and ClassDefine).
I am working on a symbol table implementation to help you out.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/27738#issuecomment-3419623850
More information about the hotspot-jfr-dev
mailing list