Skip to content

Conversation

sendaoYan
Copy link
Member

@sendaoYan sendaoYan commented Sep 29, 2025

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

  • 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-8367899: compiler/c2/gvn/TestBitCompressValueTransform.java intermittent timed out (Bug - P4)

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

@bridgekeeper
Copy link

bridgekeeper bot commented Sep 29, 2025

👋 Welcome back syan! A progress list of the required criteria for merging this PR into master 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 Sep 29, 2025

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

8367899: compiler/c2/gvn/TestBitCompressValueTransform.java intermittent timed out

Reviewed-by: dfenacci, chagedorn

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 master 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 master branch, type /integrate in a new comment.

@openjdk openjdk bot added the hotspot-compiler hotspot-compiler-dev@openjdk.org label Sep 29, 2025
@openjdk
Copy link

openjdk bot commented Sep 29, 2025

@sendaoYan The following label will be automatically applied to this pull request:

  • hotspot-compiler

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.

@openjdk openjdk bot added the rfr Pull request is ready for review label Sep 29, 2025
@mlbridge
Copy link

mlbridge bot commented Sep 29, 2025

Webrevs

Copy link
Contributor

@dafedafe dafedafe left a 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?

* <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>

@sendaoYan
Copy link
Member Author

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?

Maybe we can remove all the loop for this test in this PR?

@sendaoYan
Copy link
Member Author

sendaoYan commented Sep 30, 2025

I have remove the loops which do not use the loop counter variable or do not use the random number.

Copy link
Member

@chhagedorn chhagedorn left a 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) {
Copy link
Member

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.

Copy link
Member Author

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......

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No worries!

@openjdk openjdk bot added the ready Pull request is ready to be integrated label Oct 6, 2025
Copy link
Contributor

@dafedafe dafedafe left a 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

@sendaoYan
Copy link
Member Author

Thanks for the reviews and suggestions@dafedafe @chhagedorn

/integrate

@openjdk
Copy link

openjdk bot commented Oct 6, 2025

Going to push as commit 2c114d6.
Since your change was applied there have been 88 commits pushed to the master branch:

Your commit was automatically rebased without conflicts.

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

openjdk bot commented Oct 6, 2025

@sendaoYan Pushed as commit 2c114d6.

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

@sendaoYan sendaoYan deleted the jbs8367899 branch October 6, 2025 09:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hotspot-compiler hotspot-compiler-dev@openjdk.org integrated Pull request has been integrated
Development

Successfully merging this pull request may close these issues.

3 participants