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
8282509: [exploded image] ResolvedClassTest fails with similar output #7701
Conversation
|
Dean Long mentioned on the issue that they were able to reproduce the issue with an exploded image. I don't have access to JBS (yet!) to comment there directly, so I'll mention here that I am building with make images, and not the default target. |
@backwaterred 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. |
4149b86
to
0455aff
Compare
I believe I have a better handle on this now. In a lucky break, some logging output I added ended up in My working understanding is as follows. For systems which support CDS, PrintCompilation sees the code as coming from Invokers$Holder in Invokers.java where is is shared among JVM instances. On AIX, CDS is not (fully?) implemented, and the code is not stored in Invokers$Holder. Instead, the code is referred to by a LambdaForm at the displayed memory address. With this piece of the puzzle in place (and hopefully confirmed by others), I believe the check proposed here to be a sane choice to resolve this failure. |
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 reasonable. Please update the PR title: "[exploded image] ResolvedClassTest fails with similar output"
Thanks for the review @TheRealMDoerr. Should I wait for another review, or is one sufficient in this case? For future reference, it looks to me that this failure is related to missing pre-generated invokers. As I understand it, these are either not created, or just not linked in the exploded image, and are never created on AIX. |
I've added your additional hint to the issue and linked both issues. Thanks for your investigation. |
@backwaterred This change now passes all automated pre-integration checks. 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 38 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 (@TheRealMDoerr, @dean-long) but any other Committer may sponsor as well.
|
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.
This does seem like the best fix.
Thanks for the reviews. /integrate |
@backwaterred |
/sponsor |
Going to push as commit 7c8ea9f.
Your commit was automatically rebased without conflicts. |
@TheRealMDoerr @backwaterred Pushed as commit 7c8ea9f. |
This is a tentative solution to a failure observed on AIX. The solution is tentative because I require help to ensure that something deeper and more problematic is not happening.
The test fails because the output produced by PrintCompilation produces
LambdaForm$MH/0x00000007c0002400
instead ofInvokers$Holder
as it does on other platforms. There is one other place the output is different, whenDirectMethodHandle$Holder
is replaced withLambdaForm$DMH/0x00000007c0001c00
. Ignoring these name changes, the output of PrintCompilation is identical. I observe the same compilations (including the OSR/non-OSR, and same level) in the same order.I would be grateful for help understanding the root of the difference behind the change. I have a few ideas, but I will let you build your own interpretations free from my potentially incorrect understanding (i.e. no spoilers). Thanks in advance.
Progress
Issue
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.java.net/jdk pull/7701/head:pull/7701
$ git checkout pull/7701
Update a local copy of the PR:
$ git checkout pull/7701
$ git pull https://git.openjdk.java.net/jdk pull/7701/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 7701
View PR using the GUI difftool:
$ git pr show -t 7701
Using diff file
Download this PR as a diff file:
https://git.openjdk.java.net/jdk/pull/7701.diff