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

Erik Gahlin egahlin at openjdk.org
Mon Oct 17 14:12:18 UTC 2022


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

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

Commit messages:
 - Fix disabled
 - Fix pointer format
 - Initial

Changes: https://git.openjdk.org/jdk/pull/10723/files
 Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=10723&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8280131
  Stats: 306 lines in 6 files changed: 232 ins; 73 del; 1 mod
  Patch: https://git.openjdk.org/jdk/pull/10723.diff
  Fetch: git fetch https://git.openjdk.org/jdk pull/10723/head:pull/10723

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


More information about the hotspot-dev mailing list