8375051: [lworld] debugging methods should provide more Valhalla related information#2208
8375051: [lworld] debugging methods should provide more Valhalla related information#2208Arraying wants to merge 4 commits intoopenjdk:lworldfrom
Conversation
|
👋 Welcome back phubner! A progress list of the required criteria for merging this PR into |
|
@Arraying 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 377 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 |
Webrevs
|
xmas92
left a comment
There was a problem hiding this comment.
Very nice to add more of this printing. I added something similar my self while debugging.
I tried to mimic the PrintInlineLayout and PrintFieldLayout a bit more. But I think this more generally useful and extendable for debugging purposes.
I also like to use the StreamIndentor to get a more tree view when doing nested printing / printing subcategories. But not sure all agree here.
Regardless this is a much needed improvement (which we can extend in the future)
|
This patch is showing a bug in the way the AccessFlags are printed (the bug is not in this patch, but this patch is using the buggy code): ` - ---- static fields (6 words):
All fields are marked as 'value' when obviously, none of them are storing values from value classes!
This piece of code was added considering class AccessFlags and not field AccessFlags. ACC_IDENTITY has value 0x20, and no field flag is using this value, leading the code above to always print "value ". |
I'd also like to see indentation, esp. for array elements. I think this is something we can/should address in mainline. I've filed JDK-8380133 for tracking.
Great catch. I've filed JDK-8380129 as a follow-up. Could you confirm you're okay with this set of changes going in? |
fparain
left a comment
There was a problem hiding this comment.
Looks good to me, with the recommendation to fix JDK-8380129 a soon as possible to prevent confusion for people looking at the new output.
|
Going to push as commit 2e98a4d.
Your commit was automatically rebased without conflicts. |
Hi all,
This adds some more debug prints to various internals.
When printing an
InstanceKlass, the kind is now shown. For example:The
InlineKlass::Membersare also printed. For example (note that to get individual array entriesWizardModemust be enabled):Fields now indicate their field flags. Non-static fields indicate (a) when they are flat and (b) their layout when flat. For example:
Arrays already have plenty of flattening information that can be printed.
Testing: tiers 1-3.
Progress
Issue
Reviewers
Reviewing
Using
gitCheckout this PR locally:
$ git fetch https://git.openjdk.org/valhalla.git pull/2208/head:pull/2208$ git checkout pull/2208Update a local copy of the PR:
$ git checkout pull/2208$ git pull https://git.openjdk.org/valhalla.git pull/2208/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 2208View PR using the GUI difftool:
$ git pr show -t 2208Using diff file
Download this PR as a diff file:
https://git.openjdk.org/valhalla/pull/2208.diff
Using Webrev
Link to Webrev Comment