-
Notifications
You must be signed in to change notification settings - Fork 6.1k
8280131: jcmd reports "Module jdk.jfr not found." when "jdk.management.jfr" is missing #10723
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
👋 Welcome back egahlin! A progress list of the required criteria for merging this PR into |
/label remove hotspot |
@mgronlun |
/label add hotspot |
@mgronlun |
Webrevs
|
@egahlin This change now passes all automated pre-integration checks. ℹ️ This project also has non-automated pre-integration requirements. Please see the file CONTRIBUTING.md for details. After integration, the commit message for the final commit will be:
You can use pull request commands such as /summary, /contributor and /issue to adjust it as needed. At the time when this comment was updated there had been no new commits pushed to the ➡️ To integrate this PR with the above commit message to the |
@@ -72,7 +68,28 @@ static bool is_disabled(outputStream* output) { | |||
|
|||
static bool invalid_state(outputStream* out, TRAPS) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The changes look okay to me except that "invalid_state" isn't a clear name for function that tries to ensure that the jdk.jfr module is loaded. Up to you, but I think it would be clear if it were renamed load_jfr that returns disabled when disabled or the jdk.jfr module cannot be loaded.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree. I have a large refactoring of jfrDcmd.cpp coming up. I will clean up names and logic in that PR.
/integrate |
Going to push as commit a345df2.
Your commit was automatically rebased without conflicts. |
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
Progress
Issue
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk pull/10723/head:pull/10723
$ git checkout pull/10723
Update a local copy of the PR:
$ git checkout pull/10723
$ git pull https://git.openjdk.org/jdk pull/10723/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 10723
View PR using the GUI difftool:
$ git pr show -t 10723
Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/10723.diff