Skip to content

8383769: compiler/c2/TestDependsOnTestSqrtHFAssertion.java timed out#31072

Open
anton-seoane wants to merge 2 commits intoopenjdk:masterfrom
anton-seoane:JDK-8383769
Open

8383769: compiler/c2/TestDependsOnTestSqrtHFAssertion.java timed out#31072
anton-seoane wants to merge 2 commits intoopenjdk:masterfrom
anton-seoane:JDK-8383769

Conversation

@anton-seoane
Copy link
Copy Markdown
Contributor

@anton-seoane anton-seoane commented May 7, 2026

This PR limits the execution of a occasionally timing out test to the platform context in which it only makes sense to run it.

The regression test for JDK-8378897 has been found occasionally to be timing out (most recently in the Valhalla CI). This test only makes sense in the context of AVX512-FP16-enabled x86 CPUs, and should therefore only be executed when such features are available.

Testing: test is now skipped if the CPU does not support AVX512-FP16



Progress

  • Change must not contain extraneous whitespace
  • Commit message must refer to an issue
  • Change must be properly reviewed (2 reviews required, with at least 1 Reviewer, 1 Author)

Issue

  • JDK-8383769: compiler/c2/TestDependsOnTestSqrtHFAssertion.java timed out (Bug - P4)

Reviewers

Reviewing

Using git

Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/31072/head:pull/31072
$ git checkout pull/31072

Update a local copy of the PR:
$ git checkout pull/31072
$ git pull https://git.openjdk.org/jdk.git pull/31072/head

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 31072

View PR using the GUI difftool:
$ git pr show -t 31072

Using diff file

Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/31072.diff

Using Webrev

Link to Webrev Comment

@bridgekeeper
Copy link
Copy Markdown

bridgekeeper Bot commented May 7, 2026

👋 Welcome back aseoane! 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
Copy Markdown

openjdk Bot commented May 7, 2026

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

8383769: compiler/c2/TestDependsOnTestSqrtHFAssertion.java timed out

Reviewed-by: kvn, qamai, jbhateja

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

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, @merykitty, @jatin-bhateja) but any other Committer may sponsor as well.

➡️ To flag this PR as ready for integration with the above commit message, type /integrate in a new comment. (Afterwards, your sponsor types /sponsor in a new comment to perform the integration).

@openjdk openjdk Bot changed the title JDK-8383769 8383769: compiler/c2/TestDependsOnTestSqrtHFAssertion.java timed out May 7, 2026
@openjdk openjdk Bot added the hotspot-compiler hotspot-compiler-dev@openjdk.org label May 7, 2026
@openjdk
Copy link
Copy Markdown

openjdk Bot commented May 7, 2026

@anton-seoane 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
Copy link
Copy Markdown

openjdk Bot commented May 7, 2026

The total number of required reviews for this PR has been set to 2 based on the presence of this label: hotspot-compiler. This can be overridden with the /reviewers command.

@anton-seoane
Copy link
Copy Markdown
Contributor Author

Pinging @jatin-bhateja, as he was the one who originally introduced the test

@anton-seoane anton-seoane marked this pull request as ready for review May 7, 2026 13:06
@openjdk openjdk Bot added the rfr Pull request is ready for review label May 7, 2026
@mlbridge
Copy link
Copy Markdown

mlbridge Bot commented May 7, 2026

Webrevs

Copy link
Copy Markdown
Contributor

@vnkozlov vnkozlov left a comment

Choose a reason for hiding this comment

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

Good.

Copy link
Copy Markdown
Member

@merykitty merykitty left a 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. This test runs the main loop for 100_000 iterations, maybe this can be lowered, too?

@openjdk openjdk Bot added the ready Pull request is ready to be integrated label May 7, 2026
@anton-seoane
Copy link
Copy Markdown
Contributor Author

@merykitty yes, originally I thought of bounding ctr too, as I'm not sure it adds much to the test. Would bumping down the count to e.g. 10_000 and bounding ctr to 0..99 be okay with you?

@jatin-bhateja
Copy link
Copy Markdown
Member

Pinging @jatin-bhateja, as he was the one who originally introduced the test

Change looks good to me.

@merykitty
Copy link
Copy Markdown
Member

merykitty commented May 8, 2026

@anton-seoane I think that is fine, currently, the inner loop runs for 5 billion iterations, which is unnecessarily large. If you lower that number, I think you can even skip the @require change.

@openjdk openjdk Bot removed the ready Pull request is ready to be integrated label May 8, 2026
@anton-seoane
Copy link
Copy Markdown
Contributor Author

I've now reduced the number of iterations, and added -Xbatch to make sure the compilation is actually done. The test runs quite faster now, so no need to reduce coverage via @requires.

Copy link
Copy Markdown
Member

@merykitty merykitty left a 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, thanks for making the changes.

Copy link
Copy Markdown
Contributor

@vnkozlov vnkozlov left a comment

Choose a reason for hiding this comment

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

Does it reproduce original failure with reduced iterations and -Xbatch?

@anton-seoane
Copy link
Copy Markdown
Contributor Author

@vnkozlov although it looks like a yes, unfortunately we don't have the resources (i.e. avx512fp16-enabled machines) to check that. Maybe @jatin-bhateja could clear that for us?

Copy link
Copy Markdown
Contributor

@vnkozlov vnkozlov left a comment

Choose a reason for hiding this comment

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

Okay

@openjdk openjdk Bot added the ready Pull request is ready to be integrated label May 8, 2026
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 ready Pull request is ready to be integrated rfr Pull request is ready for review

Development

Successfully merging this pull request may close these issues.

4 participants