8374783: C2 compilation asserts with "slice of address and input slice don't match"#31500
Conversation
|
👋 Welcome back rcastanedalo! A progress list of the required criteria for merging this PR into |
|
❗ This change is not yet ready to be integrated. |
|
@robcasloz The following labels will be automatically applied to this pull request:
When this pull request is ready to be reviewed, an "RFR" email will be sent to the corresponding mailing lists. If you would like to change these labels, use the /label pull request command. |
|
The total number of required reviews for this PR has been set to 2 based on the presence of this label: |
52ad24a to
aca441c
Compare
|
/label remove core-libs,hotspot |
|
@robcasloz The |
|
/label add hotspot-compiler |
|
@robcasloz |
|
I think this does not cover all the cases. What if we have an |
This changeset forces an incremental inlining cleanup whenever an incrementally inlined call exposes an address where the offset becomes constant. This is necessary to prevent slice mismatches when parsing subsequent accesses to the address due to outdated IGVN-recorded address type information, see more details in the JBS issue. If not prevented, such mismatches can lead to e.g. incorrect memory graphs, as illustrated in the included test file.
This solution is the most effective and least intrusive one among a few evaluated options, see JBS issue.
Testing
applications/ctw/modules/jdk_jpackage.java)Thanks to @iwanowww for useful discussions and suggestions!
Progress
Issue
Reviewing
Using
gitCheckout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/31500/head:pull/31500$ git checkout pull/31500Update a local copy of the PR:
$ git checkout pull/31500$ git pull https://git.openjdk.org/jdk.git pull/31500/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 31500View PR using the GUI difftool:
$ git pr show -t 31500Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/31500.diff
Using Webrev
Link to Webrev Comment