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
8253641: Missing newline in the printout of certain JFR events #248
Conversation
👋 Welcome back mbien! A progress list of the required criteria for merging this PR into |
@mbien The following label will be automatically applied to this pull request: When this pull request is ready to be reviewed, an RFR email will be sent to the corresponding mailing list. If you would like to change these labels, use the |
Webrevs
|
Tiny PR looking for reviewers - now even with an issue assigned to it. |
Hi Michael, I think you can go ahead and merge the blocks. Thanks |
You will also need to align the name of this PR with the synopsis of the JIRA issue, the bots complain about: Integration blocker |
@mgronlun Thank you for the review, I made some changes:
|
src/jdk.jfr/share/classes/jdk/jfr/internal/tool/PrettyWriter.java
Outdated
Show resolved
Hide resolved
/test tier1 |
@mgronlun the test group tier-1 does not exist |
/contributor mbien |
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.
Thanks @mbien for fixing this.
@mgronlun no problem. Thank you for the review! |
@mbien 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 447 new commits pushed to the
As there are no conflicts, your changes will automatically be rebased on top of these commits when integrating. If you prefer to avoid this automatic rebasing, please check the documentation for the /integrate command for further details. As you do not have Committer status in this project an existing Committer must agree to sponsor your change. Possible candidates are the reviewers of this PR (@mgronlun) but any other Committer may sponsor as well. ➡️ To flag this PR as ready for integration with the above commit message, type |
You can issue a comment "/contributor add mbien" and then another comment "/integrate". I will then sponsor your change for integration. Sorry for the misspelling. |
/contributor mbien |
@mbien Syntax:
|
/contributor add mbien |
@mbien Could not parse
|
/contributor add @mbien |
@mbien Could not parse
|
/contributor add Michael Bien mbien42@gmail.com |
@mbien |
/integrate |
(sorry for the spam, the bot was stubborn) |
@mbien no problem, we are all new to the process here. Sorry for providing some vague instructions. |
/sponsor |
@mgronlun @mbien Since your change was applied there have been 447 commits pushed to the
Your commit was automatically rebased without conflicts. Pushed as commit e577c8c. 💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored. |
Trivial fix which adds a missing new line to PrettyWriter::printClassLoader if clazz == null.
PrettyWriter is used for both the jfr CLI tool and also for the impl of the public JFR API behind jdk.jfr.Event::toString().
how to reproduce using JFR CLI:
To generate a JFR dump for testing, simply start HelloWorld.java
with
jdk-15+36/bin/java -XX:StartFlightRecording=filename=dump.jfr,dumponexit=true HelloWorld.java
current result for events where the classLoader field equals null (note: newline missing):
after the patch, using same jfr dump and displaying the same event:
sidenote:
There would be an opportunity to merge the two sequential if-else blocks[1] in printClassLoader over the clazz variable after this patch, but this would obfuscate the actual bug fix, so I decided to omit it. Let me know if I should add that.
[1] https://github.com/mbien/jdk/blob/67750e2b599b3f2a6b814d7bceada785ca4051f9/src/jdk.jfr/share/classes/jdk/jfr/internal/tool/PrettyWriter.java#L440-L448
Progress
Issue
Reviewers
Contributors
<mbien42@gmail.com>
Download
$ git fetch https://git.openjdk.java.net/jdk pull/248/head:pull/248
$ git checkout pull/248