Skip to content

8378128: Make PLABStats data members private - #29982

Closed
dev-jonghoonpark wants to merge 1 commit into
openjdk:masterfrom
dev-jonghoonpark:JDK-8378128
Closed

dev-jonghoonpark wants to merge 1 commit into
openjdk:masterfrom
dev-jonghoonpark:JDK-8378128

Conversation

@dev-jonghoonpark

@dev-jonghoonpark dev-jonghoonpark commented Mar 1, 2026 •

Copy link
Copy Markdown
Contributor

Changes

  • PLABStats has atomic data members (_allocated, _wasted, _undo_wasted, _unused) with protected access. After JDK-8375971, the derived G1EvacStats accesses these via accessor functions rather than directly, so they can now be made private.
  • _description remains protected as it is still directly accessed by G1EvacStats.

Test

  • Verified that make images completes without errors.
  • Confirmed that Tier1 tests pass successfully.

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

Issue

  • JDK-8378128: Make PLABStats data members private (Enhancement - P4)

Reviewers

Reviewing

Using git

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

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

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 29982

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

Using diff file

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

Using Webrev

Link to Webrev Comment

Signed-off-by: jonghoonpark <dev@jonghoonpark.com>
@bridgekeeper

bridgekeeper Bot commented Mar 1, 2026

Copy link
Copy Markdown

👋 Welcome back dev-jonghoonpark! 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 Mar 1, 2026 •

Copy link
Copy Markdown

@dev-jonghoonpark 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:

8378128: Make PLABStats data members private

Reviewed-by: tschatzl, ayang, jwaters

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 14 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 (@tschatzl, @albertnetymk, @TheShermanTanker) 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 hotspot-gc hotspot-gc-dev@openjdk.org label Mar 1, 2026
@openjdk

openjdk Bot commented Mar 1, 2026

Copy link
Copy Markdown

@dev-jonghoonpark The following label will be automatically applied to this pull request:

  • hotspot-gc

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.

@openjdk openjdk Bot added the rfr Pull request is ready for review label Mar 1, 2026
@mlbridge

mlbridge Bot commented Mar 1, 2026

Copy link
Copy Markdown

Webrevs

@openjdk openjdk Bot added the ready Pull request is ready to be integrated label Mar 2, 2026
@dev-jonghoonpark

Copy link
Copy Markdown
Contributor Author

/integrate

@openjdk openjdk Bot added the sponsor Pull request is ready to be sponsored label Mar 2, 2026
@openjdk

openjdk Bot commented Mar 2, 2026

Copy link
Copy Markdown

@dev-jonghoonpark
Your change (at version 41db5e1) is now ready to be sponsored by a Committer.

@TheShermanTanker

Copy link
Copy Markdown
Contributor

You should wait for 2 Reviews in HotSpot code before running integrate, but since this has been approved twice already, I'll sponsor.

@TheShermanTanker

Copy link
Copy Markdown
Contributor

/sponsor

@openjdk

openjdk Bot commented Mar 2, 2026

Copy link
Copy Markdown

Going to push as commit cc4ca9f.
Since your change was applied there have been 14 commits pushed to the master branch:

Your commit was automatically rebased without conflicts.

@openjdk openjdk Bot added the integrated Pull request has been integrated label Mar 2, 2026
@openjdk openjdk Bot closed this Mar 2, 2026
@openjdk openjdk Bot removed ready Pull request is ready to be integrated rfr Pull request is ready for review sponsor Pull request is ready to be sponsored labels Mar 2, 2026
@openjdk

openjdk Bot commented Mar 2, 2026

Copy link
Copy Markdown

@TheShermanTanker @dev-jonghoonpark Pushed as commit cc4ca9f.

💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored.

@dev-jonghoonpark

Copy link
Copy Markdown
Contributor Author

You should wait for 2 Reviews in HotSpot code before running integrate

I wasn't aware of that part. I'll be more careful next time. Thank you for letting me know.

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

Labels

hotspot-gc hotspot-gc-dev@openjdk.org integrated Pull request has been integrated

Development

Successfully merging this pull request may close these issues.

4 participants