Skip to content

8352075: Perf regression accessing fields #25877

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed

Conversation

coleenp
Copy link
Contributor

@coleenp coleenp commented Jun 18, 2025

Hi all,

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

The commit being backported was authored by Radim Vansa on 12 Jun 2025 and was reviewed by Coleen Phillimore, Ioi Lam and Johan Sjölen.

This has been running cleanly in CI for a week now.

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

Issue

  • JDK-8352075: Perf regression accessing fields (Bug - P3)

Reviewers

Reviewing

Using git

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

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

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 25877

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

Using diff file

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

Using Webrev

Link to Webrev Comment

@bridgekeeper
Copy link

bridgekeeper bot commented Jun 18, 2025

👋 Welcome back coleenp! A progress list of the required criteria for merging this PR into jdk25 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 Jun 18, 2025

@coleenp 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:

8352075: Perf regression accessing fields

Reviewed-by: shade, iklam

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 12 new commits pushed to the jdk25 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.

➡️ To integrate this PR with the above commit message to the jdk25 branch, type /integrate in a new comment.

@openjdk openjdk bot changed the title Backport e18277b470a162b9668297e8e286c812c4b0b604 8352075: Perf regression accessing fields Jun 18, 2025
@openjdk
Copy link

openjdk bot commented Jun 18, 2025

This backport pull request has now been updated with issue from the original commit.

@openjdk openjdk bot added backport clean rfr Pull request is ready for review labels Jun 18, 2025
@openjdk
Copy link

openjdk bot commented Jun 18, 2025

@coleenp The following labels will be automatically applied to this pull request:

  • hotspot
  • serviceability

When this pull request is ready to be reviewed, an "RFR" email will be sent to the corresponding mailing lists. If you would like to change these labels, use the /label pull request command.

@mlbridge
Copy link

mlbridge bot commented Jun 18, 2025

Webrevs

@rvansa
Copy link

rvansa commented Jun 18, 2025

Thank you for the backport! @shipilev indicated that the backport to 21 should wait a bit, could you clarify when should I file that (e.g. end of July, ...)?

@shipilev
Copy link
Member

@shipilev indicated that the backport to 21 should wait a bit, could you clarify when should I file that (e.g. end of July, ...)?

I would say for the fairly big change like this, we want to wait until JDK 25 GA (that would pass the all-tests-run). It would be too late for Oct 2025 release, though. So realistically, this would target January 2026 release. You can pull this patch to your downstream JDK 21 to see if there are any troubles ahead of this path, this will also soothe 21u maintainer concerns, I think.

@coleenp
Copy link
Contributor Author

coleenp commented Jun 20, 2025

So @shipilev, JDK 25 is in rampdown phase 1. Rampdown phase 2 starts 7/17. It's a big change for JDK 25. My sense of the risk is that it's not high. If it's checked in now, I think it'll get more testing than if it gets backported to a 25.01 release. I'll discuss it with people here. I think for JDK 21, we should wait for more testing to be run after 25 GA.

@shipilev
Copy link
Member

So @shipilev, JDK 25 is in rampdown phase 1. Rampdown phase 2 starts 7/17. It's a big change for JDK 25. My sense of the risk is that it's not high. If it's checked in now, I think it'll get more testing than if it gets backported to a 25.01 release. I'll discuss it with people here. I think for JDK 21, we should wait for more testing to be run after 25 GA.

Yeah, I am on the fence for JDK 25, can take it both ways. If it is to land in JDK 25u anyway, there is some benefit for doing it in GA for more testing. At the same time, JDK 26 is already testing it, so there is no particular need to risk JDK 25 stability, and we can just capitalize on JDK 26 testing for JDK 25u backport.

For JDK 21u, it definitely needs to be released in JDK 25 first.

@coleenp
Copy link
Contributor Author

coleenp commented Jun 24, 2025

Hi Aleksey. The consensus around here is that this should go in JDK 25 so it gets the usual end of release testing, and doesn't go through a special process for update release. This fixes a regression where we have no workaround. If any disasters happen, we can change the BinarySearchThreshold in the source code as a fix, and/or make it a diagnostic option.

@shipilev
Copy link
Member

Yeah, as I said, can take it both ways. Picking this up to JDK 25 works for me as well.

@coleenp
Copy link
Contributor Author

coleenp commented Jun 24, 2025

Thank you for your feedback and comments for this. Here goes.
/integrate

@openjdk
Copy link

openjdk bot commented Jun 24, 2025

@coleenp This pull request has not yet been marked as ready for integration.

@coleenp
Copy link
Contributor Author

coleenp commented Jun 24, 2025

oops I guess I need approval, even though it was a clean backport.

@openjdk openjdk bot added the ready Pull request is ready to be integrated label Jun 24, 2025
@coleenp
Copy link
Contributor Author

coleenp commented Jun 24, 2025

Thank you Aleksey and Ioi.
/integrate

@openjdk
Copy link

openjdk bot commented Jun 24, 2025

Going to push as commit 0694cc1.
Since your change was applied there have been 13 commits pushed to the jdk25 branch:

Your commit was automatically rebased without conflicts.

@openjdk openjdk bot added the integrated Pull request has been integrated label Jun 24, 2025
@openjdk openjdk bot closed this Jun 24, 2025
@openjdk openjdk bot removed ready Pull request is ready to be integrated rfr Pull request is ready for review labels Jun 24, 2025
@openjdk
Copy link

openjdk bot commented Jun 24, 2025

@coleenp Pushed as commit 0694cc1.

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

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

Successfully merging this pull request may close these issues.

4 participants