Skip to content

8376400: C2: folding ifs may cause incorrect execution when trap is taken#2936

Open
rwestrel wants to merge 1 commit into
openjdk:masterfrom
rwestrel:backport-rwestrel-5803dd3e-master
Open

8376400: C2: folding ifs may cause incorrect execution when trap is taken#2936
rwestrel wants to merge 1 commit into
openjdk:masterfrom
rwestrel:backport-rwestrel-5803dd3e-master

Conversation

@rwestrel

@rwestrel rwestrel commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

This backport is not clean because of:

  • unrelated context differences

  • is_uncommon_trap_proj() has no default argument

The test case fails without the patch, passes with it. tier1 testing passes.



Progress

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

Issue

  • JDK-8376400: C2: folding ifs may cause incorrect execution when trap is taken (Bug - P3 - Requested)

Reviewers

Reviewing

Using git

Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk21u-dev.git pull/2936/head:pull/2936
$ git checkout pull/2936

Update a local copy of the PR:
$ git checkout pull/2936
$ git pull https://git.openjdk.org/jdk21u-dev.git pull/2936/head

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 2936

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

Using diff file

Download this PR as a diff file:
https://git.openjdk.org/jdk21u-dev/pull/2936.diff

Using Webrev

Link to Webrev Comment

@bridgekeeper

bridgekeeper Bot commented Jun 18, 2026

Copy link
Copy Markdown

👋 Welcome back roland! 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 commented Jun 18, 2026

Copy link
Copy Markdown

@rwestrel This change is no longer ready for integration - check the PR body for details.

@openjdk openjdk Bot changed the title Backport 5803dd3e80f4fa6d4795960f88425d4b570ac050 8376400: C2: folding ifs may cause incorrect execution when trap is taken Jun 18, 2026
@openjdk

openjdk Bot commented Jun 18, 2026

Copy link
Copy Markdown

This backport pull request has now been updated with issue from the original commit.

@openjdk openjdk Bot added the backport Port of a pull request already in a different code base label Jun 18, 2026
@rwestrel

Copy link
Copy Markdown
Contributor Author

/template append

@openjdk

openjdk Bot commented Jun 18, 2026

Copy link
Copy Markdown

@rwestrel The pull request template has been appended to the pull request body

@openjdk openjdk Bot added the rfr Pull request is ready for review label Jun 18, 2026
@mlbridge

mlbridge Bot commented Jun 18, 2026

Copy link
Copy Markdown

Webrevs

@chhagedorn chhagedorn left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looks good!

@openjdk

openjdk Bot commented Jun 18, 2026

Copy link
Copy Markdown

⚠️ @rwestrel This change is now ready for you to apply for maintainer approval. This can be done directly in each associated issue or by using the /approval command.

@openjdk openjdk Bot added ready Pull request is ready to be integrated approval Requires approval; will be removed when approval is received and removed ready Pull request is ready to be integrated labels Jun 18, 2026
@GoeLin

GoeLin commented Jun 19, 2026

Copy link
Copy Markdown
Member

Hi @rwestrel
how urgent do you consider this?
Given this is a long standing issue, I would prefer to defer this to the next update, so that it
gets exposure in 27&25.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approval Requires approval; will be removed when approval is received backport Port of a pull request already in a different code base rfr Pull request is ready for review

Development

Successfully merging this pull request may close these issues.

3 participants