-
Notifications
You must be signed in to change notification settings - Fork 6.2k
8286451: C2: assert(nb == 1) failed: only when the head is not shared #8947
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 |
Webrevs
|
TobiHartmann
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.
Looks reasonable to me. I submitted testing and will report back once it passed.
|
@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 78 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
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.
Looks good!
nb counts the number of loops that share a single head
Maybe you also want to rename the variable to make it more clear what it counts.
| * @test | ||
| * @bug 8286451 | ||
| * @summary C2: assert(nb == 1) failed: only when the head is not shared | ||
| * @run main/othervm TestSharedLoopHead |
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.
Could be converted to @run driver TestSharedLoopHead instead.
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 but the test needs -XX:-BackgroundCompilation
Thanks for the review.
Done. |
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.
That looks good, thanks for doing the updates!
|
All tests passed. |
|
@chhagedorn @TobiHartmann thanks for the reviews |
|
/integrate |
|
Going to push as commit bf0e625.
Your commit was automatically rebased without conflicts. |
nb counts the number of loops that share a single head. The assert
that fires is in code that handles the case of a self loop (a loop
composed of a single block). There can be a self loop and multiple
loops that share a head: the assert makes little sense and I propose
to simply remove it.
I think there's another issue with this code: in the case of a self
loop and multiple loops that share a head, the self loop can be any of
the loop for which the head is cloned not only the one that's passed
as argument to ciTypeFlow::clone_loop_head(). As a consequence, I
moved the logic for self loops in the loop that's applied to all loops
that share the loop head.
Progress
Issue
Reviewers
Reviewing
Using
gitCheckout this PR locally:
$ git fetch https://git.openjdk.java.net/jdk pull/8947/head:pull/8947$ git checkout pull/8947Update a local copy of the PR:
$ git checkout pull/8947$ git pull https://git.openjdk.java.net/jdk pull/8947/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 8947View PR using the GUI difftool:
$ git pr show -t 8947Using diff file
Download this PR as a diff file:
https://git.openjdk.java.net/jdk/pull/8947.diff