Skip to content

Conversation

@vish-chan
Copy link
Contributor

@vish-chan vish-chan commented Nov 14, 2025

This PR fixes a potential SEGV and removes dead code:
Fix: Prevent potential SEGV in VTransformReductionVectorNode - [from @shipilev] This fixes a crash in diagnostic code when isa_ReductionVector() unexpectedly returns nullptr. While this indicates the graph is already corrupted, the additional crash in TRACE_OPTIMIZE makes debugging harder. The fix adds defensive null checking to prevent the diagnostic crash and improve error handling.

Cleanup: Remove unused first_red variable


Progress

  • Change must not contain extraneous whitespace
  • Commit message must refer to an issue
  • Change must be properly reviewed (2 reviews required, with at least 1 Reviewer, 1 Author)

Issue

  • JDK-8371881: C2: Fix potential SEGV in VTransformReductionVectorNode tracing (Enhancement - P5)

Reviewers

Reviewing

Using git

Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/28323/head:pull/28323
$ git checkout pull/28323

Update a local copy of the PR:
$ git checkout pull/28323
$ git pull https://git.openjdk.org/jdk.git pull/28323/head

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 28323

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

Using diff file

Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/28323.diff

Using Webrev

Link to Webrev Comment

@bridgekeeper
Copy link

bridgekeeper bot commented Nov 14, 2025

👋 Welcome back vish-chan! 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 Nov 14, 2025

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

@openjdk
Copy link

openjdk bot commented Nov 14, 2025

@vish-chan 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.

@vish-chan vish-chan marked this pull request as ready for review November 14, 2025 13:41
@openjdk openjdk bot added the rfr Pull request is ready for review label Nov 14, 2025
@mlbridge
Copy link

mlbridge bot commented Nov 14, 2025

Webrevs

Copy link
Member

@shipilev shipilev left a comment

Choose a reason for hiding this comment

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

Looks fine, but @eme64 should take a look as well.

/reviewers 2

@openjdk openjdk bot added the ready Pull request is ready to be integrated label Nov 14, 2025
@openjdk
Copy link

openjdk bot commented Nov 14, 2025

@shipilev
The total number of required reviews for this PR (including the jcheck configuration and the last /reviewers command) is now set to 2 (with at least 1 Reviewer, 1 Author).

@openjdk openjdk bot removed the ready Pull request is ready to be integrated label Nov 14, 2025
Copy link
Contributor

@eme64 eme64 left a comment

Choose a reason for hiding this comment

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

@vish-chan @shipilev thanks for working on this!

Looks reasonable to me :)

@vish-chan
Copy link
Contributor Author

@eme64 I'm not sure but your approval might be required.

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

Labels

hotspot-compiler [email protected] rfr Pull request is ready for review

Development

Successfully merging this pull request may close these issues.

3 participants