RFR: 8280131: jcmd reports "Module jdk.jfr not found." when "jdk.management.jfr" is missing

Markus Grönlund mgronlun at openjdk.org
Tue Oct 18 14:02:01 UTC 2022


On Mon, 17 Oct 2022 09:25:57 GMT, Erik Gahlin <egahlin at openjdk.org> wrote:

> Could I have a review of a PR that ensures JFR can be used when only the jdk.jfr module is present in an image.
> 
> The behavior is similar to how  -javaagent  adds the java.instrument module and "jcmd PID ManagementAgent.status" loads the jdk.management.agent module.
> 
> TestJfrJavaBase.java is replaced with TestModularImage.java. The former test could not be used since the jdk.jfr module is now added to the module graph when -XX:StartFlightRecording is specified.
> 
> Testing: tier1-3 + test/jdk/jdk/jfr
> 
> Thanks
> Erik

Marked as reviewed by mgronlun (Reviewer).

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

PR: https://git.openjdk.org/jdk/pull/10723


More information about the hotspot-dev mailing list