Skip to content

8388449: GenShen: Degenerated cycle could be skipped - #691

Open
earthling-amzn wants to merge 1 commit into
openjdk:masterfrom
earthling-amzn:backport-8388449-to-jdk-25
Open

8388449: GenShen: Degenerated cycle could be skipped#691
earthling-amzn wants to merge 1 commit into
openjdk:masterfrom
earthling-amzn:backport-8388449-to-jdk-25

Conversation

@earthling-amzn

@earthling-amzn earthling-amzn commented Aug 4, 2026

Copy link
Copy Markdown

Not clean, but not difficult to resolve conflicts. Fixes a serious issue in which Shenandoah could skip a degenerated cycle, or observe an unacceptable cancellation reason during shutdown.



Progress

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

Issues

  • JDK-8388449: GenShen: Degenerated cycle could be skipped (Bug - P2 - Requested)
  • JDK-8388809: Shenandoah: Control thread may observe incorrect cancellation reason (Bug - P4 - Requested)

Reviewers

Reviewing

Using git

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

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

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 691

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

Using diff file

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

Using Webrev

Link to Webrev Comment

@bridgekeeper

bridgekeeper Bot commented Aug 4, 2026

Copy link
Copy Markdown

👋 Welcome back wkemper! 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 Aug 4, 2026

Copy link
Copy Markdown

❗ 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 c585f18aa717c466a6d9b157968dcb0d1fe1b668 8388449: GenShen: Degenerated cycle could be skipped Aug 4, 2026
@openjdk

openjdk Bot commented Aug 4, 2026

Copy link
Copy Markdown

This backport pull request has now been updated with issues 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 Aug 4, 2026
@mlbridge

mlbridge Bot commented Aug 4, 2026

Copy link
Copy Markdown

Webrevs

@kdnilsen kdnilsen left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks for this backport.

@shipilev shipilev 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 fine, thanks.

@openjdk

openjdk Bot commented Aug 6, 2026

Copy link
Copy Markdown

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

@earthling-amzn

Copy link
Copy Markdown
Author

/approval request We observed an assertion failure in which Shenandoah's generational mode attempted to skip running a degenerated cycle after an allocation failure. This is not optional for Shenandoah and could result in heap corruption. The change here replaces an unconditional exchange with an exchange that protects allocation failures from being overwritten by other threads. There is also a related change that replaces multiple reads of a mutable variable with a single atomic read.

@openjdk

openjdk Bot commented Aug 6, 2026

Copy link
Copy Markdown

@earthling-amzn
8388449: The approval request has been created successfully.
8388809: The approval request has been created successfully.

@openjdk openjdk Bot added the approval Requires approval; will be removed when approval is received label Aug 6, 2026
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