-
Notifications
You must be signed in to change notification settings - Fork 6.2k
8308749: C2 failed: regular loops only (counted loop inside infinite loop) #14178
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 epeter! A progress list of the required criteria for merging this PR into |
| * questions. | ||
| */ | ||
|
|
||
| super public class TestCountedLoopInsideInfiniteLoop |
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.
May be add comment why you put this into separate file and not make inner class.
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.
@vnkozlov Is that even possible, to make jasm code inside a java file? I just repeated the pattern of other jasm tests in the same directory.
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.
My bad. Missed that it is jasm.
| * questions. | ||
| */ | ||
|
|
||
| super public class TestCountedLoopInsideInfiniteLoop |
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.
My bad. Missed that it is jasm.
|
@eme64 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 295 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!
|
Thanks @vnkozlov @chhagedorn for the reviews! |
|
Going to push as commit 6c3e621.
Your commit was automatically rebased without conflicts. |
I found this failure with my jasm fuzzer. Have not tried to reproduce it with plain java.
I added the code above the assert, the comments explain why:
jdk/src/hotspot/share/opto/loopnode.cpp
Lines 1749 to 1763 in 1fd6699
Here the graph just before the assert:

120 Loop-> need it to kick ofbeautify_loopand a secondbuild_loop_tree71 Region-> inifinite loop,NeverBranchis inserted on firstbuild_loop_treepass. Only attached to loop tree after secondbuild_loop_tree.x = 81 Region-> looks like a counted loop, but is only attached to the loop tree afterbeautify_loopin the secondbuild_loop_tree.Testing up to tier6 and stress testing. Passed.
Progress
Issue
Reviewers
Reviewing
Using
gitCheckout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/14178/head:pull/14178$ git checkout pull/14178Update a local copy of the PR:
$ git checkout pull/14178$ git pull https://git.openjdk.org/jdk.git pull/14178/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 14178View PR using the GUI difftool:
$ git pr show -t 14178Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/14178.diff
Webrev
Link to Webrev Comment