Skip to content

8308084: C2 fix idom bug in PhaseIdealLoop::create_new_if_for_predicate #13980

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

Closed
wants to merge 2 commits into from

Conversation

eme64
Copy link
Contributor

@eme64 eme64 commented May 15, 2023

Bug fixing to make the verification pass for #13951 JDK-8305073.

There only seemed to be one bug with idom that I could find up to tier6 and stress testing. That one bug already showed up with a simple java -Xcomp --version. But it is possible that there are more that we would find in the future, maybe with the fuzzer.

Details about the bug I fixed in PhaseIdealLoop::create_new_if_for_predicate:
We computed the dom_lca_internal for rgn too early - the following line can change the CFG such that the idom would change:

set_idom(iff, if_cont, dom_depth(iff));

So I moved the idom computation down, until after we do not change the CFG anymore, and idom should be stable from there on.


Progress

  • Change must be properly reviewed (1 review required, with at least 1 Reviewer)
  • Change must not contain extraneous whitespace
  • Commit message must refer to an issue

Issue

  • JDK-8308084: C2 fix idom bug in PhaseIdealLoop::create_new_if_for_predicate

Reviewers

Reviewing

Using git

Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/13980/head:pull/13980
$ git checkout pull/13980

Update a local copy of the PR:
$ git checkout pull/13980
$ git pull https://git.openjdk.org/jdk.git pull/13980/head

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 13980

View PR using the GUI difftool:
$ git pr show -t 13980

Using diff file

Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/13980.diff

Webrev

Link to Webrev Comment

@bridgekeeper
Copy link

bridgekeeper bot commented May 15, 2023

👋 Welcome back epeter! A progress list of the required criteria for merging this PR into master will be added to the body of your pull request. There are additional pull request commands available for use with this pull request.

@openjdk
Copy link

openjdk bot commented May 15, 2023

@eme64 The following label will be automatically applied to this pull request:

  • hotspot-compiler

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.

@openjdk openjdk bot added the hotspot-compiler hotspot-compiler-dev@openjdk.org label May 15, 2023
@eme64 eme64 marked this pull request as ready for review May 15, 2023 09:20
@openjdk openjdk bot added the rfr Pull request is ready for review label May 15, 2023
@mlbridge
Copy link

mlbridge bot commented May 15, 2023

Webrevs

Copy link
Member

@chhagedorn chhagedorn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@openjdk
Copy link

openjdk bot commented May 16, 2023

@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:

8308084: C2 fix idom bug in PhaseIdealLoop::create_new_if_for_predicate

Reviewed-by: chagedorn, thartmann, kvn

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 6 new commits pushed to the master branch:

  • f57c783: 8308239: Tighten up accessibility of nested classes in java.lang.invoke
  • 64f6681: 8308246: PPC64le build broken after JDK-8304913
  • 5763be7: 8307326: Package jdk.internal.classfile.java.lang.constant become obsolete
  • c7951cf: 8306304: Fix xlc17 clang warnings in ppc and aix code
  • 285c833: 8308043: Deadlock in TestCSLocker.java due to blocking GC while allocating
  • 1a6f981: 8308185: Update Http2TestServerConnection to use SSLSocket.startHandshake()

Please see this link for an up-to-date comparison between the source branch of this pull request and the master branch.
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 master branch, type /integrate in a new comment.

@openjdk openjdk bot added the ready Pull request is ready to be integrated label May 16, 2023
Copy link
Member

@TobiHartmann TobiHartmann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me.

@openjdk
Copy link

openjdk bot commented May 17, 2023

@eme64 this pull request can not be integrated into master due to one or more merge conflicts. To resolve these merge conflicts and update this pull request you can run the following commands in the local repository for your personal fork:

git checkout JDK-8308084
git fetch https://git.openjdk.org/jdk.git master
git merge FETCH_HEAD
# resolve conflicts and follow the instructions given by git merge
git commit -m "Merge master"
git push

@openjdk openjdk bot added merge-conflict Pull request has merge conflict with target branch and removed ready Pull request is ready to be integrated labels May 17, 2023
@openjdk openjdk bot added ready Pull request is ready to be integrated and removed merge-conflict Pull request has merge conflict with target branch labels May 17, 2023
@eme64
Copy link
Contributor Author

eme64 commented May 22, 2023

@vnkozlov @TobiHartmann @chhagedorn Thanks for the reviews!
/integrate

@openjdk
Copy link

openjdk bot commented May 22, 2023

Going to push as commit 41beb44.
Since your change was applied there have been 50 commits pushed to the master branch:

  • b6a9f5c: 8307619: C2 failed: Not monotonic (AndI CastII LShiftI) in TestShiftCastAndNotification.java
  • eaa80ad: 8300543: Compiler Implementation for Pattern Matching for switch
  • 5ccc962: 8308342: Remove MetaspaceClosure::Ref::keep_after_pushing()
  • a0f4a94: 8307783: runtime/reflect/ReflectOutOfMemoryError.java timed out
  • 939344b: 8304685: Fix whitespace parsing in libjdwp
  • 241455f: 8307962: Exclude gc/g1/TestSkipRebuildRemsetPhase.java fails with virtual test thread factory
  • 34468e1: 8308021: Update IANA Language Subtag Registry to Version 2023-05-11
  • f0aebc8: 8305972: Update XML Security for Java to 3.0.2
  • 265f40b: 8308396: Fix offset_of conversion warnings in runtime code
  • a5343fa: 8281149: (fs) java/nio/file/FileStore/Basic.java fails with java.lang.RuntimeException: values differ by more than 1GB
  • ... and 40 more: https://git.openjdk.org/jdk/compare/b300e73a4acb5c64f68a355e0ad70d3862084ff4...master

Your commit was automatically rebased without conflicts.

@openjdk openjdk bot added the integrated Pull request has been integrated label May 22, 2023
@openjdk openjdk bot closed this May 22, 2023
@openjdk openjdk bot removed ready Pull request is ready to be integrated rfr Pull request is ready for review labels May 22, 2023
@openjdk
Copy link

openjdk bot commented May 22, 2023

@eme64 Pushed as commit 41beb44.

💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hotspot-compiler hotspot-compiler-dev@openjdk.org integrated Pull request has been integrated
Development

Successfully merging this pull request may close these issues.

4 participants