-
Notifications
You must be signed in to change notification settings - Fork 6.2k
8308660: C2 compilation hits 'node must be dead' assert #18305
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
Conversation
|
👋 Welcome back roland! A progress list of the required criteria for merging this PR into |
|
@rwestrel 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 165 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
|
chhagedorn
left a comment
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.
Otherwise, looks good!
| * @summary C2 compilation hits 'node must be dead' assert | ||
| * @run main/othervm -XX:-BackgroundCompilation -XX:-TieredCompilation -XX:-UseOnStackReplacement -XX:+StressIGVN -XX:StressSeed=242006623 TestFoldIfRemovesTopNode | ||
| * @run main/othervm -XX:-BackgroundCompilation -XX:-TieredCompilation -XX:-UseOnStackReplacement -XX:+StressIGVN TestFoldIfRemovesTopNode |
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.
You should add -XX:+UnlockDiagnosticVMOptions to run with product and either add an -XX:+IgnoreUnrecognizedVMOptions or @requires vm.compiler2.enabled since StressIGVN is a C2 flag.
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, good catch! Fixed in the new commit.
Thanks for reviewing this. |
vnkozlov
left a comment
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.
chhagedorn
left a comment
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 for the update, looks good!
|
Thanks for the reviews @chhagedorn @vnkozlov |
|
/integrate |
|
Going to push as commit 91baac9b9de91b16e602dcf1d9f41e20bec38ffc.
Your commit was automatically rebased without conflicts. |
|
@rwestrel An unexpected error occurred during integration. No push attempt will be made. The error has been logged and will be investigated. It is possible that this error is caused by a transient issue; feel free to retry the operation. |
| private static void testHelper(int k, boolean flag, int[] array) { | ||
| if (flag) { | ||
| k = new int[k].length; | ||
| int j = k + 3; |
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.
| int j = k + 3; | |
| int j = k + 3; |
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. Will fix this before pushing.
|
/integrate |
|
Going to push as commit 053ff76.
Your commit was automatically rebased without conflicts. |
In
IfNode::fold_compares_helper(),adjusted_valis:which is then transformed to the
topnode. The code, next, tries todestroy the
adjusted_valnode i.e. thetopnode. That results inthe assert failure. Given We're trying to fold 2 ifs in a dying part
of the graph, the fix is straightforward: test
adjusted_valfor topand bail out from the transformation if that's the case.
Progress
Issue
Reviewers
Reviewing
Using
gitCheckout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/18305/head:pull/18305$ git checkout pull/18305Update a local copy of the PR:
$ git checkout pull/18305$ git pull https://git.openjdk.org/jdk.git pull/18305/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 18305View PR using the GUI difftool:
$ git pr show -t 18305Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/18305.diff
Webrev
Link to Webrev Comment