Skip to content

8368015: Shenandoah: fix error in computation of average allocation rate#484

Open
pf0n wants to merge 2 commits intoopenjdk:masterfrom
pf0n:8368015-backport
Open

8368015: Shenandoah: fix error in computation of average allocation rate#484
pf0n wants to merge 2 commits intoopenjdk:masterfrom
pf0n:8368015-backport

Conversation

@pf0n
Copy link
Copy Markdown

@pf0n pf0n commented Apr 20, 2026

Backport is not clean. Resolved conflict in shenandoahGeneration.cpp where we need to pass in the unaccounted bytes to provide a more accurate estimation for the allocation rate + there is no AtomicAccess class in JDK25, so resorted to using Atomic::store instead of AtomicAccess::store - pf0n@94b8d0b.

Testing (all passed):

  • GHA
  • Local tier1 tests with Linux x86_64 server fastdebug and release build


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-8368015 needs maintainer approval

Issue

  • JDK-8368015: Shenandoah: fix error in computation of average allocation rate (Enhancement - P4 - Approved)

Reviewers

Reviewing

Using git

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

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

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 484

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

Using diff file

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

Using Webrev

Link to Webrev Comment

@bridgekeeper
Copy link
Copy Markdown

bridgekeeper Bot commented Apr 20, 2026

👋 Welcome back pf0n! 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 Apr 20, 2026

@pf0n This change now passes all automated pre-integration checks.

ℹ️ This project also has non-automated pre-integration requirements. Please see the file CONTRIBUTING.md for details.

After integration, the commit message for the final commit will be:

8368015: Shenandoah: fix error in computation of average allocation rate

Reviewed-by: phh

You can use pull request commands such as /summary, /contributor and /issue to adjust it as needed.

At the time when this comment was updated there had been 25 new commits pushed to the master branch:

As there are no conflicts, your changes will automatically be rebased on top of these commits when integrating. If you prefer to avoid this automatic rebasing, please check the documentation for the /integrate command for further details.

As you do not have Committer status in this project an existing Committer must agree to sponsor your change. Possible candidates are the reviewers of this PR (@phohensee) but any other Committer may sponsor as well.

➡️ To flag this PR as ready for integration with the above commit message, type /integrate in a new comment. (Afterwards, your sponsor types /sponsor in a new comment to perform the integration).

@openjdk openjdk Bot added the rfr Pull request is ready for review label Apr 20, 2026
@mlbridge
Copy link
Copy Markdown

mlbridge Bot commented Apr 20, 2026

Webrevs

@pf0n pf0n changed the title 8368015: Shenandoah: fix error in computation of average allocation rate Backport a2870d6b4985a68beb3fe3bf6622e6245e9a82ec Apr 20, 2026
@openjdk openjdk Bot changed the title Backport a2870d6b4985a68beb3fe3bf6622e6245e9a82ec 8368015: Shenandoah: fix error in computation of average allocation rate Apr 20, 2026
@openjdk
Copy link
Copy Markdown

openjdk Bot commented Apr 20, 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 Apr 20, 2026
@openjdk
Copy link
Copy Markdown

openjdk Bot commented Apr 21, 2026

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

@pf0n
Copy link
Copy Markdown
Author

pf0n commented Apr 22, 2026

/approval request This fixes an error that could cause Shenandoah heuristics to underestimate the allocation rate.

This is not a clean backport because the AtomicAccess class does not exist in JDK25, so I had to replace it with the Atomic class. The change does not introduce any new functionality beyond the original fix. The fix is straightforward and nearly identical with the mainline change. All existing tests passes. The risk is considered low.

@openjdk
Copy link
Copy Markdown

openjdk Bot commented Apr 22, 2026

@pf0n
8368015: The approval request has been created successfully.

@openjdk openjdk Bot added approval Requires approval; will be removed when approval is received ready Pull request is ready to be integrated and removed approval Requires approval; will be removed when approval is received labels Apr 22, 2026
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 ready Pull request is ready to be integrated rfr Pull request is ready for review

Development

Successfully merging this pull request may close these issues.

2 participants