RFR: 8353596: GenShen: Test TestClone.java#generational-no-coops intermittent timed out
William Kemper
wkemper at openjdk.org
Wed Apr 23 23:02:54 UTC 2025
On Wed, 23 Apr 2025 20:17:45 GMT, William Kemper <wkemper at openjdk.org> wrote:
> We've identified another scenario that could result in intermittent timeout failures in jtreg tests. If the cause of the gc cycle is `GCCause::_codecache_GC_threshold`, the thread requesting the GC will not be notified.
That's a good call out. I don't believe `ShenandoahControlThread` is affected by this same issue because it will notify if `_gc_requested` is set, and doesn't care about the _cause_ of the gc. I did also consider adding `_codecache_GC_threshold` as a cause for explicit gc, except I'm not sure it really is (in the sense that the user did not explicitly request it). Also, it felt like a losing game because the next time a new gc cause is added, we'd need to evaluate whether or not it was `explicit`.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/24834#issuecomment-2825691769
More information about the hotspot-gc-dev
mailing list