8331404: IGV: Show line numbers for callees in properties#19025
8331404: IGV: Show line numbers for callees in properties#19025chhagedorn wants to merge 1 commit intoopenjdk:masterfrom
Conversation
|
👋 Welcome back chagedorn! A progress list of the required criteria for merging this PR into |
|
@chhagedorn 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 43 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 |
|
@chhagedorn 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. |
|
Thanks Toby for your review! |
|
Thanks Tobias for your review! /integrate |
|
Going to push as commit 8bc641e.
Your commit was automatically rebased without conflicts. |
|
@chhagedorn Pushed as commit 8bc641e. 💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored. |
IGV shows the
bcifor a node in the callee, followed by the bci in the caller method and so on until we reach the root method. For thelineproperty, we currently only show the line number found in the root method (first()is the root method being compiled andsecond()andthird()are inlined):Example program:

Properties of the store to

fFld:One could read the line number from the
jvmsproperty above. But you would need to expand that property with the button on the right side which opens a window. But then you cannot click anything else anymore in IGV until you close the window again.A simpler and easier to read solution is to add the line number information to match the bci numbers (they are printed in callee->root method order which I think is okay - especially if there are a lot of inlinees, it could be easier to have the really interesting numbers at the start on the left side). This would look something like that:

If there is no line number information for a bci, I simply emit a
_.Testing:
java -Xcomp -XX:+PrintIdealGraph -XX:PrintIdealGraphLevel=4 -XX:PrintIdealGraphFile=graph.xml HelloWorld.java.Thanks,
Christian
Progress
Issue
Reviewers
Reviewing
Using
gitCheckout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/19025/head:pull/19025$ git checkout pull/19025Update a local copy of the PR:
$ git checkout pull/19025$ git pull https://git.openjdk.org/jdk.git pull/19025/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 19025View PR using the GUI difftool:
$ git pr show -t 19025Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/19025.diff
Webrev
Link to Webrev Comment