-
Notifications
You must be signed in to change notification settings - Fork 6.3k
8367899: compiler/c2/gvn/TestBitCompressValueTransform.java intermittent timed out #27548
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 syan! A progress list of the required criteria for merging this PR into |
@sendaoYan 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 85 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 |
@sendaoYan The following label will be automatically applied to this pull request:
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. |
Webrevs
|
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.
Thanks @sendaoYan for fixing this. It looks ok to me but I'm just wondering: do we really need a loop for tests that don't use the counter? Shouldn't the IR framework already take care of warming up and compiling the methods?
jdk/test/hotspot/jtreg/compiler/lib/ir_framework/Run.java
Lines 42 to 49 in 9d9c0e0
* <li><p>The framework warms {@code r} up by invoking it for a predefined number of iterations (default: 2000) | |
* or any number specified by an additional {@link Warmup} annotation at the run method {@code r} or by using | |
* {@link TestFramework#setDefaultWarmup(int)} (could also be 0 which skips the warm-up completely which is | |
* similar to simulating {@code -Xcomp}). More information about the warm-up in general can be found in | |
* {@link Warmup @Warmup}.</li> | |
* <li><p>After the warm-up, the framework compiles the test method {@code t} at the specified compilation level set by | |
* {@link Test#compLevel()} (default {@link CompLevel#ANY} will pick the highest available level which is usually | |
* {@link CompLevel#C2}).</li> |
Maybe we can remove all the loop for this test in this PR? |
I have remove the loops which do not use the loop counter variable or do not use the random number. |
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.
Removing the loops looks good! As pointed out by @dafedafe, the IR framework will indeed take care of warming the tests up.
} | ||
|
||
@Run(test = "test1") | ||
public void run1(RunInfo info) { |
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.
While at it, you can also remove all the unused RunInfo
parameters. But up to you if you want to squeeze that in here as well - it's only a clean-up that is not that important.
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.
Sorry for missed this 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.
No worries!
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.
Thanks for the cleanup @sendaoYan. LGTM
Thanks for the reviews and suggestions@dafedafe @chhagedorn /integrate |
Going to push as commit 2c114d6.
Your commit was automatically rebased without conflicts. |
@sendaoYan Pushed as commit 2c114d6. 💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored. |
Hi all,
After JDK-8260555 change the timeout factor from 4 to 1, make test compiler/c2/gvn/TestBitCompressValueTransform.java intermittent timed out.
There are 20 10k/20k loop count of loops in this test, this cause test need many CPU cycles to finish. If I reduce the loop count from 10k/20k to 100/200, the test failures descripted in JDK-8350896 also reproduced when the tested jdk is jdk25u. So it seems that there no need so many loop count for these tests.
Without the proposed change, the driver action finish about 65 sencods on linux-x64, with the proposed change the driver action finish about 1.5 seconds.
Progress
Issue
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/27548/head:pull/27548
$ git checkout pull/27548
Update a local copy of the PR:
$ git checkout pull/27548
$ git pull https://git.openjdk.org/jdk.git pull/27548/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 27548
View PR using the GUI difftool:
$ git pr show -t 27548
Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/27548.diff
Using Webrev
Link to Webrev Comment