-
Notifications
You must be signed in to change notification settings - Fork 6.2k
8358129: compiler/startup/StartupOutput.java runs into out of memory on Windows after JDK-8347406 #25582
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
Conversation
…ory on Windows after JDK-8347406
|
👋 Welcome back dfenacci! A progress list of the required criteria for merging this PR into |
|
@dafedafe 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 176 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. ➡️ To integrate this PR with the above commit message to the |
galderz
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What impact has this change in the time the test takes to run? If it turns out to be too slow, maybe the processes could be run batches?
I checked on one of our windows Machines - the test did run in 11 seconds before and took 48 seconds after this change. Looks fine for me. |
TobiHartmann
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me.
I quickly checked on our machines (few different architectures) and it went from a range between 2 and 10 seconds to a range between 6 and 23 seconds. |
| out = new OutputAnalyzer(pr[i]); | ||
| // The VM should not crash but will probably fail with a "CodeCache is full. Compiler has been disabled." message | ||
| out.stdoutShouldNotContain("# A fatal error"); | ||
| out = new OutputAnalyzer(pb.start()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since we start VMs from concurrently to serially, do we need start VMs 200 times anymore, maybe 20 times or 5 times is enough, or even just 1 time is enough?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The goal is actually to test the VM startup with different (randomised) code cache sizes. So, I'm not sure that there is another way to do that other than starting a new VM every time. We could definitely try with a lower number but, as the whole test takes just a few seconds to run, I don't think it would make a big difference.
eme64
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dafedafe Thanks for looking into this, looks reasonable 😊
|
@TobiHartmann @eme64 thanks for your reviews! |
|
/integrate |
|
Going to push as commit 534a860.
Your commit was automatically rebased without conflicts. |
|
/backport :jdk25 |
|
@dafedafe the backport was successfully created on the branch backport-dafedafe-534a8605-jdk25 in my personal fork of openjdk/jdk. To create a pull request with this backport targeting openjdk/jdk:jdk25, just click the following link: The title of the pull request is automatically filled in correctly and below you find a suggestion for the pull request body:
If you need to update the source branch of the pull then run the following commands in a local clone of your personal fork of openjdk/jdk: |
The test
compiler/startup/StartupOutput.javastarts 200 VMs in a loop , this can lead to resource shortages on some (Windows) machines.There is no real need to run those VMs concurrently (their run is short and basically check that the VM doesn't crash giving limited code cache).
Running them sequentially should be OK and should avoid running out of memory.
Testing: Tier1-3+
Progress
Issue
Reviewers
Reviewing
Using
gitCheckout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/25582/head:pull/25582$ git checkout pull/25582Update a local copy of the PR:
$ git checkout pull/25582$ git pull https://git.openjdk.org/jdk.git pull/25582/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 25582View PR using the GUI difftool:
$ git pr show -t 25582Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/25582.diff
Using Webrev
Link to Webrev Comment