Skip to content

8381382: Shenandoah: assert(capacity > 0) failed: free regions must have allocation capacity#553

Open
pengxiaolong wants to merge 1 commit intoopenjdk:masterfrom
pengxiaolong:backport-pengxiaolong-01bfd427-master
Open

8381382: Shenandoah: assert(capacity > 0) failed: free regions must have allocation capacity#553
pengxiaolong wants to merge 1 commit intoopenjdk:masterfrom
pengxiaolong:backport-pengxiaolong-01bfd427-master

Conversation

@pengxiaolong
Copy link
Copy Markdown

@pengxiaolong pengxiaolong commented May 8, 2026

Hi all,

This pull request contains a backport of commit 01bfd427 from the openjdk/jdk repository.

The PR fix a memory order related bug that could corrupt heap, therefore I think it is necessary to backport it. It is not a clean backport because of renaming from Atomic to AtomicAccess in hotspot.

Test:

  • hotspot_gc_shenandoah

Thanks!



Progress

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

Issue

  • JDK-8381382: Shenandoah: assert(capacity > 0) failed: free regions must have allocation capacity (Bug - P3 - Requested)

Reviewers

Reviewing

Using git

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

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

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 553

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

Using diff file

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

Using Webrev

Link to Webrev Comment

@bridgekeeper
Copy link
Copy Markdown

bridgekeeper Bot commented May 8, 2026

👋 Welcome back xpeng! 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
Copy Markdown

openjdk Bot commented May 8, 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 01bfd427a322c6f92643c7920bbd1b1b35141a69 8381382: Shenandoah: assert(capacity > 0) failed: free regions must have allocation capacity May 8, 2026
@openjdk
Copy link
Copy Markdown

openjdk Bot commented May 8, 2026

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 May 8, 2026
@pengxiaolong pengxiaolong marked this pull request as ready for review May 8, 2026 19:29
@openjdk openjdk Bot added the rfr Pull request is ready for review label May 8, 2026
@mlbridge
Copy link
Copy Markdown

mlbridge Bot commented May 8, 2026

Webrevs

Copy link
Copy Markdown

@earthling-amzn earthling-amzn left a comment

Choose a reason for hiding this comment

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

Thank you!

Copy link
Copy Markdown
Contributor

@kdnilsen kdnilsen left a comment

Choose a reason for hiding this comment

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

Thanks

@earthling-amzn
Copy link
Copy Markdown

/approval request This change addresses a correctness issue introduced in https://bugs.openjdk.org/browse/JDK-8345423. Only Shenandoah is affected by the change.

@openjdk
Copy link
Copy Markdown

openjdk Bot commented May 8, 2026

@earthling-amzn Only the author (@pengxiaolong) is allowed to issue the /approval command.

@pengxiaolong
Copy link
Copy Markdown
Author

/approval request This change addresses a correctness issue introduced in https://bugs.openjdk.org/browse/JDK-8345423. Only Shenandoah is affected by the change.

@openjdk
Copy link
Copy Markdown

openjdk Bot commented May 8, 2026

@pengxiaolong
8381382: The approval request has been created successfully.

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