-
Notifications
You must be signed in to change notification settings - Fork 208
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
8305995: Footprint regression from JDK-8224957 #1262
Conversation
👋 Welcome back catap! A progress list of the required criteria for merging this PR into |
@vnkozlov, @TobiHartmann may I ask you to review this backport? Thanks. |
Webrevs
|
This backport pull request has now been updated with issue from the original commit. |
@catap 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:
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 110 new commits pushed to the
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. ➡️ To flag this PR as ready for integration with the above commit message, type |
/integrate |
You need approval for this backport, see https://openjdk.org/projects/jdk-updates/approval.html |
@TobiHartmann how can I file it without access to JBS? May I ask you to do it on my behalf? |
Sure, but as I mentioned in openjdk/jdk#13453, we should give this some bake time, i.e. runs through testing, in mainline first. I'll follow up on this next week. |
@TobiHartmann thanks! |
Tagged the JBS issue. |
@phohensee thanks! |
@TobiHartmann, @phohensee any news? |
The approval is still pending. This usually takes 1-2 weeks. |
What tests were done? Please enable Github actions in your repo, so that at least tier 1 GHAs run. |
@tstuefe actions are enabled. You may read discussion and motivation for that changes here: openjdk/jdk#13453 |
@catap I don't see any checks: https://github.com/openjdk/jdk17u-dev/pull/1262/checks We need tests in the backport release. Checks in backport releases are important since we are a lot closer to customer installations than we are in head, so backports are arguably more dangerous than patches in head. Please see https://wiki.openjdk.org/display/JDKUpdates/How+to+contribute+or+backport+a+fix, especially section 3. |
Reviewed-by: kvn, thartmann
@catap Please do not rebase or force-push to an active PR as it invalidates existing review comments. Note for future reference, the bots always squash all changes into a single commit automatically as part of the integration. See OpenJDK Developers’ Guide for more information. |
/integrate |
@tstuefe force push triggers checks |
Hi @catap, you may not integrate before you have jdk17u-fix-yes on the JBS issue. Please
|
Hi @GoeLin, This regression was found while trying to migrate an application from JDK 1.8 to JDK 17, by running internal benchmarks and investigating abnormal memory usage for about 4 times more of one of them. This application is quite memory sensitive. Outside of this application, I've discovered a lot of small wired things that are affected by this regression. For example, I can't compile from IntelliJ IDEA fastutils when using JDK17 or JDK21, but I can when using JDK11. After my fix I can use both JDK17 and JDK21. As part of the investigation I've been able to implement a benchmark that proves that the regression exists and allows to track that it has been fixed. The idea of the benchmark is to build an RB tree containing a lot of primitive When I run
and to compare with this fix:
As you can see, the footprint is quite different. It is almost zero, as expected for such a data structure using only primitive
From my point of view, this regression is a major issue that can improve the performance of a lot of applications, especially those that are sensitive to latency in general or the footprint in particular. |
@GoeLin any thought? |
@catap This pull request has been inactive for more than 4 weeks and will be automatically closed if another 4 weeks passes without any activity. To avoid this, simply add a new comment to the pull request. Feel free to ask for assistance if you need help with progressing this pull request towards integration! |
Thanks, bot! Any news? |
/sponsor |
Going to push as commit 6991372.
Your commit was automatically rebased without conflicts. |
@phohensee @catap Pushed as commit 6991372. 💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored. |
I would like to backport this footprint regression from JDK-8224957 to JDK17.
Progress
Issue
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk17u-dev.git pull/1262/head:pull/1262
$ git checkout pull/1262
Update a local copy of the PR:
$ git checkout pull/1262
$ git pull https://git.openjdk.org/jdk17u-dev.git pull/1262/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 1262
View PR using the GUI difftool:
$ git pr show -t 1262
Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk17u-dev/pull/1262.diff
Webrev
Link to Webrev Comment