RFR: 8350786: Some java/lang jtreg tests miss requires vm.hasJFR [v2]

Matthias Baesken mbaesken at openjdk.org
Thu Feb 27 13:39:02 UTC 2025


On Thu, 27 Feb 2025 09:12:10 GMT, Matthias Baesken <mbaesken at openjdk.org> wrote:

> when I list the modules of the minimal JVM I see a number of modules that will most likely not work because the related JVM features are not present
> 
> ```
> images/jdk/bin/java --list-modules
>  ...
> jdk.jdi at 25.0.0.1-internal
> jdk.jdwp.agent at 25.0.0.1-internal
>  ...
> jdk.jfr at 25.0.0.1-internal
> jdk.management at 25.0.0.1-internal
> jdk.management.agent at 25.0.0.1-internal
> jdk.management.jfr at 25.0.0.1-internal
> ```
> 
> The minimal JVM does not contain e.g. JFR, JVMTI or management JVM features. So most likely those modules miss basic functionality and will not or not fully work. But fixing this is most likely out of scope of this PR . Is there some JVM feature to module mapping and tool support already, I am not aware of it ? Would be nice to have this, because removing unneeded (and not working) modules from the image is probably a good idea.

@magicus , @erikj79  is there already something in the build system that can be used for this task ?
E.g. we still have the module  'jdk.jfr'  in the minimal JVM - but the module does not work because the related Hotspot feature is missing.
Same for JDWP/JDI - feature JVMTI is missing.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/23805#discussion_r1973596161


More information about the core-libs-dev mailing list