Skip to content

8270307: C2: assert(false) failed: bad AD file after JDK-8267687 #4796

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 1 commit into from

Conversation

y1yang0
Copy link
Member

@y1yang0 y1yang0 commented Jul 15, 2021

One input of ConvI2L becomes Top, which causes all nodes in the chain becoming Top, but this CMoveLNode does not change, only its input becomes Top.

  Pop  2146  CMoveL  === _  351  1  2149  [[ 2182  2187 ]]   Type:long !orig=810,696,[439],288 !jvms: Test::vMeth @ bci:78 (line 8)
BreakAtNode: _idx=2461 _debug_idx=102702461 orig._idx=2146 orig._debug_idx=92502146
<               < 2146  CMoveL  === _ _  1 _  [[]]   Type:long !orig=810,696,[439],288 !jvms: Test::vMeth @ bci:78 (line 8)
> long           2461  CMoveL  === _  2458  2149  1  [[ 2187  2182 ]]   Type:long !orig=2146,810,696,[439],288 !jvms: Test::vMeth @ bci:78 (line 8)

This CMoveLNode(CMove Binary(.. ..) (Binary .. Con#Top)) can not match any rules in instruction selection phase and finally hits the assert.


Progress

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

Issue

  • JDK-8270307: C2: assert(false) failed: bad AD file after JDK-8267687

Reviewing

Using git

Checkout this PR locally:
$ git fetch https://git.openjdk.java.net/jdk pull/4796/head:pull/4796
$ git checkout pull/4796

Update a local copy of the PR:
$ git checkout pull/4796
$ git pull https://git.openjdk.java.net/jdk pull/4796/head

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 4796

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

Using diff file

Download this PR as a diff file:
https://git.openjdk.java.net/jdk/pull/4796.diff

@bridgekeeper
Copy link

bridgekeeper bot commented Jul 15, 2021

👋 Welcome back yyang! 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 openjdk bot added the rfr Pull request is ready for review label Jul 15, 2021
@openjdk
Copy link

openjdk bot commented Jul 15, 2021

@kelthuzadx 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 Jul 15, 2021
@mlbridge
Copy link

mlbridge bot commented Jul 15, 2021

Webrevs

@TobiHartmann
Copy link
Member

Since this is targeted for JDK 17, the PR needs to be opened on the JDK 17 repo. Also, you need to request approval https://openjdk.java.net/jeps/3#Fix-Request-Process

@y1yang0
Copy link
Member Author

y1yang0 commented Jul 16, 2021

Thanks Tobias for kind reminder! I do not familiar with JDK release process. I've added a Fix Request: comment on that.

@y1yang0 y1yang0 closed this Jul 16, 2021
@y1yang0 y1yang0 deleted the bad_ad_file branch July 21, 2021 02:37
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 rfr Pull request is ready for review
Development

Successfully merging this pull request may close these issues.

2 participants