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

Erik Gahlin egahlin at openjdk.org
Fri Oct 21 08:18:59 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

This pull request has now been integrated.

Changeset: a345df20
Author:    Erik Gahlin <egahlin at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/a345df20d0a85b90e6703fba5582cacc5ba38a6d
Stats:     306 lines in 6 files changed: 232 ins; 73 del; 1 mod

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

Reviewed-by: mgronlun, alanb

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

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


More information about the hotspot-dev mailing list