8268566: java/foreign/TestResourceScope.java timed out #45
Conversation
* Reduce number of concurrent threads
|
@mcimadamore 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. |
@mcimadamore This change now passes all automated pre-integration checks. 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 114 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.
|
/integrate |
Going to push as commit e377397.
Your commit was automatically rebased without conflicts. |
@mcimadamore Pushed as commit e377397. |
This patch contains another minor tweak to TestResourceScope as we have seen this test timing out at least once (on arm64).
I realized that some of the logic recently introduced in the test could lead to the test waiting forever: for instance, if all threads are executed right away before the main thread gets a chance to do anything, we'd be in a state where the lock count is zero, and no other thread will update it. I've removed the while loop - as that's not essential to make sure that the test works (what we want is to trigger a close operation that is concurrent with respect some acquire/release).
I've also lowered the number of threads - which was using 10K - that was good for stress testing, but it's not a good number in more realistic conditions.
Progress
Issue
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.java.net/jdk17 pull/45/head:pull/45
$ git checkout pull/45
Update a local copy of the PR:
$ git checkout pull/45
$ git pull https://git.openjdk.java.net/jdk17 pull/45/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 45
View PR using the GUI difftool:
$ git pr show -t 45
Using diff file
Download this PR as a diff file:
https://git.openjdk.java.net/jdk17/pull/45.diff