8390661: gc/TestGCALotAtSafepoints sub-tests times out - #32478
Conversation
Hi all, after JDK-8389096 more hangs even with the tests provided earlier were discovered. There were two main causes: * the place where the previous place allowed GC after logical release of a monitor but before releasing the OS monitor in some cases is too weak, there are a few potential cases where a deadlock could happen due to indirect monitor uses. The solution is to just conservatively disable GCs in this situation. * shutdown in particular had the issue where trying to do a GC while we are shutting down (e.g. Universe::before_exit() shuts down the GC, then other threads go into ::before_exit(), trying to get some lock - but GC code blocks if shutting down, so the VM will hang there) Testing: running the un-problemlisted tests again for many times, no failure. Hth, Thomas
|
👋 Welcome back tschatzl! A progress list of the required criteria for merging this PR into |
|
@tschatzl 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 /contributor and /issue to adjust it as needed. At the time when this comment was updated there had been 115 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 |
|
The total number of required reviews for this PR has been set to 2 based on the presence of this label: |
…st (times out otherwise)
|
@tschatzl |
Webrevs
|
|
/label add hotspot-gc |
|
@tschatzl |
* ayang review, DEBUG_ONLY -> NOT_PRODUCT * improved logging to test, and general ScavengeALotInterval to decrease the potential amount of garbage collections
|
As mentioned in another comment, we need to reduce the amount of GCs using Tested with around ~7000 runs of the test, with no failure any more. |
|
Thanks @coleenp @albertnetymk @xmas92 for your reviews /integrate |
|
Going to push as commit 31f4e43.
Your commit was automatically rebased without conflicts. |
Hi all,
the tests in JDK-8389096 discovered more hangs with . There were two main causes:
The CI hangs were of the second sort. They were also confusing because jtreg reported that the test completed during timeout handling.
Testing: running the now un-problemlisted tests again for many times, no failure.
Hth,
Thomas
Progress
Issue
Reviewers
Reviewing
Using
gitCheckout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/32478/head:pull/32478$ git checkout pull/32478Update a local copy of the PR:
$ git checkout pull/32478$ git pull https://git.openjdk.org/jdk.git pull/32478/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 32478View PR using the GUI difftool:
$ git pr show -t 32478Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/32478.diff
Using Webrev
Link to Webrev Comment