Skip to content

8376104: C2 crashes in PhiNode::Ideal(PhaseGVN*, bool) accessing NULL pointer#383

Open
wkia wants to merge 1 commit intoopenjdk:masterfrom
wkia:b8376104
Open

8376104: C2 crashes in PhiNode::Ideal(PhaseGVN*, bool) accessing NULL pointer#383
wkia wants to merge 1 commit intoopenjdk:masterfrom
wkia:b8376104

Conversation

@wkia
Copy link

@wkia wkia commented Mar 13, 2026

Backporting JDK-8376104 C2 crashes in PhiNode::Ideal(PhaseGVN*, bool) accessing NULL pointer

This PR backports the fix for C2 segmentation fault that occurs on nullptr dereferencing when the call to MemNode::optimize_memory_chain within PhiNode::Ideal can kill the Phi node itself.

make test TEST=hotspot_compiler is OK.


Progress

  • Change must not contain extraneous whitespace
  • Commit message must refer to an issue
  • JDK-8376104 needs maintainer approval

Issue

  • JDK-8376104: C2 crashes in PhiNode::Ideal(PhaseGVN*, bool) accessing NULL pointer (Bug - P3)

Reviewing

Using git

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

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

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 383

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

Using diff file

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

Using Webrev

Link to Webrev Comment

@bridgekeeper
Copy link

bridgekeeper bot commented Mar 13, 2026

👋 Welcome back rmarchenko! 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 Mar 13, 2026

❗ This change is not yet ready to be integrated.
See the Progress checklist in the description for automated requirements.

@openjdk openjdk bot changed the title Backport 947d5b6a0205f1d6d516521693dd29d543dada08 8376104: C2 crashes in PhiNode::Ideal(PhaseGVN*, bool) accessing NULL pointer Mar 13, 2026
@openjdk
Copy link

openjdk bot commented Mar 13, 2026

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

@openjdk openjdk bot added backport Port of a pull request already in a different code base rfr Pull request is ready for review labels Mar 13, 2026
@mlbridge
Copy link

mlbridge bot commented Mar 13, 2026

Webrevs

@openjdk
Copy link

openjdk bot commented Mar 13, 2026

@wkia Please do not rebase or force-push to an active PR as it invalidates existing review comments. Note for future reference, the bots always squash all changes into a single commit automatically as part of the integration. See OpenJDK Developers’ Guide for more information.

@openjdk
Copy link

openjdk bot commented Mar 13, 2026

@wkia Please do not rebase or force-push to an active PR as it invalidates existing review comments. Note for future reference, the bots always squash all changes into a single commit automatically as part of the integration. See OpenJDK Developers’ Guide for more information.

@openjdk openjdk bot added the clean Identical backport; no merge resolution required label Mar 13, 2026
@openjdk
Copy link

openjdk bot commented Mar 13, 2026

⚠️ @wkia 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.

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

Labels

backport Port of a pull request already in a different code base clean Identical backport; no merge resolution required rfr Pull request is ready for review

Development

Successfully merging this pull request may close these issues.

1 participant