Skip to content
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

8273416: C2: assert(false) failed: bad AD file after JDK-8252372 with UseSSE={0,1} #5386

wants to merge 2 commits into from


Copy link

@shipilev shipilev commented Sep 7, 2021

See the bug report for reproducer and failure message. I think the newly added CastDD/CastFF nodes should handle the extended regDPR/regFPR (which includes FPU "registers") instead of just regD/regF to avoid this mismatch error when UseSSE < 2.

Unfortunately, we cannot just use reg*PR operands in existing match rules, because those operands are defined as UseSSE < 2, and using them as operands and ideal_regs() would break the matching on UseSSE >= 2. Therefore I had to add another pair of matches.

Additonal testing:

  • Linux x86_32 tier1 -XX:UseAVX=0 -XX:UseSSE=0
  • Linux x86_32 tier1 default
  • Linux x86_64 tier1 default


  • Change must not contain extraneous whitespace
  • Commit message must refer to an issue
  • Change must be properly reviewed


  • JDK-8273416: C2: assert(false) failed: bad AD file after JDK-8252372 with UseSSE={0,1}



Using git

Checkout this PR locally:
$ git fetch pull/5386/head:pull/5386
$ git checkout pull/5386

Update a local copy of the PR:
$ git checkout pull/5386
$ git pull pull/5386/head

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 5386

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

Using diff file

Download this PR as a diff file:

Copy link

@bridgekeeper bridgekeeper bot commented Sep 7, 2021

👋 Welcome back shade! 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.

Copy link

@openjdk openjdk bot commented Sep 7, 2021

@shipilev 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 label Sep 7, 2021
Copy link

@bridgekeeper bridgekeeper bot commented Oct 5, 2021

@shipilev This pull request has been inactive for more than 8 weeks and will be automatically closed if another 8 weeks passes without any activity. To avoid this, simply add a new comment to the pull request. Feel free to ask for assistance if you need help with progressing this pull request towards integration!

@shipilev shipilev force-pushed the JDK-8273416-x86-ad-casts branch from 71f6005 to 7195504 Compare Oct 28, 2021
@shipilev shipilev marked this pull request as ready for review Oct 28, 2021
@openjdk openjdk bot added the rfr label Oct 28, 2021
Copy link

@mlbridge mlbridge bot commented Oct 28, 2021


Copy link

@vnkozlov vnkozlov left a comment


Copy link

@openjdk openjdk bot commented Oct 28, 2021

@shipilev This change now passes all automated pre-integration checks.

ℹ️ This project also has non-automated pre-integration requirements. Please see the file for details.

After integration, the commit message for the final commit will be:

8273416: C2: assert(false) failed: bad AD file after JDK-8252372 with UseSSE={0,1}

Reviewed-by: kvn, roland

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 67 new commits pushed to 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 label Oct 28, 2021
Copy link
Contributor Author

@shipilev shipilev commented Oct 29, 2021

Thanks @vnkozlov. @rwestrel, you good with this?

Copy link

@rwestrel rwestrel left a comment

Looks good to me.

Copy link
Contributor Author

@shipilev shipilev commented Nov 1, 2021

Thank you!


Copy link

@openjdk openjdk bot commented Nov 1, 2021

Going to push as commit 89ade1d.
Since your change was applied there have been 86 commits pushed to the master branch:

  • dbf5100: 8276201: Shenandoah: Race results degenerated GC to enter wrong entry point
  • 5bb1992: 8275868: ciReplay: Inlining fails with "unloaded signature classes" due to wrong protection domains
  • 158831e: 8274320: os::fork_and_exec() should be using posix_spawn
  • bf2e9ee: 8275080: G1CollectedHeap::expand() returns the wrong value
  • b7104ba: 8196017: java/awt/Mouse/GetMousePositionTest/ fails
  • 6875678: 8273831: PrintServiceLookup spawns 2 threads in the current classloader, getting orphaned
  • 5bbc8d3: 8274621: NullPointerException because listenAddress[0] is null
  • 5021a12: 8274855: vectorapi tests failing with assert(!vbox->is_Phi()) failed
  • fe6a202: 8271356: Modify jdb to treat an empty command as a repeat of the previous command
  • cef9db9: 8276039: Remove unnecessary qualifications of java_lang_Class::
  • ... and 76 more:

Your commit was automatically rebased without conflicts.

@openjdk openjdk bot closed this Nov 1, 2021
@openjdk openjdk bot added integrated and removed ready rfr labels Nov 1, 2021
Copy link

@openjdk openjdk bot commented Nov 1, 2021

@shipilev Pushed as commit 89ade1d.

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

@shipilev shipilev deleted the JDK-8273416-x86-ad-casts branch Nov 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
hotspot-compiler integrated
3 participants