-
Couldn't load subscription status.
- Fork 6.1k
8370569: IGV: dump more graph properties at bytecode parsing #27975
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
8370569: IGV: dump more graph properties at bytecode parsing #27975
Conversation
|
👋 Welcome back rcastanedalo! A progress list of the required criteria for merging this PR into |
|
@robcasloz 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 173 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. ➡️ To integrate this PR with the above commit message to the |
|
@robcasloz 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 /label pull request command. |
Webrevs
|
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.
| private void graphNameSuffixFieldActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_graphNameSuffixFieldActionPerformed | ||
| // TODO add your handling code here: | ||
| }//GEN-LAST:event_graphNameSuffixFieldActionPerformed |
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.
Can you explain why this nop-action is needed?
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.
Good catch. It is not needed, just the result of some spurious clicking on the NetBeans form editor that resulted in that code being auto-generated. I removed the action declaration and other GUI properties of the new text field to align the generated code with that of the other text fields in the Options form (commit 4123bb0).
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.
Can this method then be removed?
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.
Right, sorry, removed now (commit 8da5897). I was expecting that NetBeans would detect it as dead and remove it automagically when re-generating ViewPanel.java from ViewPanel.form, but forgot to check.
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.
No worries! Thanks for cleaning it up, it looks good to me now 👍
It is expected, but I agree that the presentation could be improved. I went with printing |
|
Thanks for the review, Christian! I just addressed your comments, please let me know what you think about the new version. |
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.
Looks good, thanks!
| private void graphNameSuffixFieldActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_graphNameSuffixFieldActionPerformed | ||
| // TODO add your handling code here: | ||
| }//GEN-LAST:event_graphNameSuffixFieldActionPerformed |
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.
Can this method then be removed?
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.
Thank you for the improvement. I have tested some random programs and the changes look good.
Thanks for reviewing, Saranya! @chhagedorn I removed the dead code you referred to, are you happy with the current version? |
|
Thanks for reviewing, Christian! |
|
/integrate |
|
Going to push as commit 5c5367c.
Your commit was automatically rebased without conflicts. |
|
@robcasloz Pushed as commit 5c5367c. 💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored. |
This changeset makes it easier to trace C2's individual bytecode parsing steps to the input class files and the output of type flow analysis, by:
dumping the
mapnode (holding the JVM state), basic block (reverse post-order index), and method name as properties of the graph that C2 dumps after each parsed bytecode at IGV dump level 6;appending this information to the graph name (hence generalizing JDK-8356779); and
making the graph name suffix configurable via
Options -> Graph Name Suffix. By default, it appends(map: [map], block #[block] at [method])to the names of graphs containing these properties (bytecode parsing dumps), and nothing otherwise.Here are the
OutlineandPropertieswindows forbefore (left) and after (right) the changeset:
Please let me know if there are other bytecode parsing graph properties that could be useful to dump, and whether you think the default graph name suffix contains the right amount of information.
Testing
Progress
Issue
Reviewers
Reviewing
Using
gitCheckout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/27975/head:pull/27975$ git checkout pull/27975Update a local copy of the PR:
$ git checkout pull/27975$ git pull https://git.openjdk.org/jdk.git pull/27975/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 27975View PR using the GUI difftool:
$ git pr show -t 27975Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/27975.diff
Using Webrev
Link to Webrev Comment