-
Notifications
You must be signed in to change notification settings - Fork 5.8k
8301736: jdk/incubator/concurrent/StructuredTaskScope/StructuredTaskScopeTest.java fail with -Xcomp #12398
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
…copeTest.java fail with -Xcomp
👋 Welcome back sunny868! A progress list of the required criteria for merging this PR into |
@sunny868 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
|
@@ -614,7 +614,7 @@ public void testJoinUntil4(ThreadFactory factory) throws Exception { | |||
public void testInterruptJoinUntil1(ThreadFactory factory) throws Exception { | |||
try (var scope = new StructuredTaskScope(null, factory)) { | |||
Future<String> future = scope.fork(() -> { | |||
Thread.sleep(Duration.ofMillis(100)); | |||
Thread.sleep(Duration.ofMillis(1000)); |
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.
As a short term fix, this is okay, Duration.ofSeconds(2) might be a bit more robust. We are iterating on this API so there are test changes in the works, in this case we can change it to poll until the sub-task is parked before calling joinUntil with the interrupt status set.
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.
So do I change to Duration.ofSeconds(2)
or cancel this PR?
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.
Go ahead with the change as this testInterruptJoinUntil isn't robust (as you've found with the -Xcomp runs). When we refresh the test we'll replace this part so the subtask does not complete before testing joinUntil with the interrupt status set.
/label add core-libs |
@AlanBateman |
Webrevs
|
…copeTest.java fail with -Xcomp
|
@sunny868 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 6 new commits pushed to the
Please see this link for an up-to-date comparison between the source branch of this pull request and the 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 (@AlanBateman) but any other Committer may sponsor as well. ➡️ To flag this PR as ready for integration with the above commit message, type |
/integrate |
@DamonFool Could you please sponsor it for me? |
Note that the problematic sleep in the joinXXX tests will be replaced if PR 12426 is integrated. It's okay if your change goes first of course, it's just that I hope to replace these sleeps to make the tests more robust. |
So just sponsor it. |
Going to push as commit 1aaf394.
Your commit was automatically rebased without conflicts. |
@DamonFool @sunny868 Pushed as commit 1aaf394. 💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored. |
Thank you |
Hi all,
When
-Xcomp
be used, java thread to block for longer, then causing StructuredTaskScopeTest.java failed frequently on the AArch64 and LoongArch64 architecture.This PR fix the issue, Please help review it.
Thanks.
Progress
Issue
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk pull/12398/head:pull/12398
$ git checkout pull/12398
Update a local copy of the PR:
$ git checkout pull/12398
$ git pull https://git.openjdk.org/jdk pull/12398/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 12398
View PR using the GUI difftool:
$ git pr show -t 12398
Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/12398.diff