-
Notifications
You must be signed in to change notification settings - Fork 5.9k
8342862: Gtest added by 8339507 appears to be causing 8GB build machines to hang #21670
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
👋 Welcome back hanklo6! A progress list of the required criteria for merging this PR into |
@hanklo6 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 29 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. Possible candidates are the reviewers of this PR (@vnkozlov, @sviswa7) but any other Committer may sponsor as well. ➡️ To flag this PR as ready for integration with the above commit message, type |
@hanklo6 To determine the appropriate audience for reviewing this pull request, one or more labels corresponding to different subsystems will normally be applied automatically. However, no automatic labelling rule matches the changes in this pull request. In order to have an "RFR" email sent to the correct mailing list, you will need to add one or more applicable labels manually using the /label pull request command. Applicable Labels
|
/label hotspot-compiler |
@hanklo6 |
Webrevs
|
Please, change title of the bug in JBS in this PR to: It seems "JDK-8339507" at the beginning of title confuses our tools/bots to where add PR link and may cause issues later too. |
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.
Please, update instructions comment in test_assemblerx86.cpp
.
What subset of instructions will be generated by default?
Did you compare compilation time between files with default and "full" sets of instructions.
What if we split it into several files? Will combined compilation time be different? At least it will not consume a lot of memory and page swapping. |
@vnkozlov The default test set includes the original map0/map1 instructions with random registers, address, and immediate. I tested on my machine (i9-13900k with 32cores), with the compilation time being 10s for the default test and 30s for the full test. |
But splitting into several files still results in large code size. We are trying to reduce the code size as well. |
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.
What if you split into separate test files (.cpp) as well so that rather than one gtest that checks everything you have several smaller ones. That will reduce compilation overhead as required and also allow full coverage, potentially running tests in parallel. |
Do we really want that? Just to put things in perspective the original file size was 45963 lines and the reduced one is now 1293 lines so we are talking about 35 such files. What Hank has done in this PR is to test each instruction with random register, address, and immediate instead of all the combinations that he had before so we still have a decent coverage. The test generator tool continues to have the ability to generate the full combination optionally. |
I think that is good enough and preferable. |
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.
Good.
/integrate |
/sponsor |
Going to push as commit 7d5eefa.
Your commit was automatically rebased without conflicts. |
We generate each test randomly. The
asmtest.out.h
is currently around 100 KB. We have added the--full
argument to allow users to create a complete test set.Progress
Issue
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/21670/head:pull/21670
$ git checkout pull/21670
Update a local copy of the PR:
$ git checkout pull/21670
$ git pull https://git.openjdk.org/jdk.git pull/21670/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 21670
View PR using the GUI difftool:
$ git pr show -t 21670
Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/21670.diff
Webrev
Link to Webrev Comment