RFR: 8367297: Test Test com/sun/jdi/JdbStopInNotificationThreadTest.java can still fail after JDK-8366850
Albert Mingkun Yang
ayang at openjdk.org
Sat Sep 13 13:44:10 UTC 2025
On Sat, 13 Sep 2025 00:19:23 GMT, Chris Plummer <cjplummer at openjdk.org> wrote:
> Improved test stability. See first comment for details.
>
> Tested by running the test 25 times with every GC on every supported platform and also combined with -Xcomp.
test/jdk/com/sun/jdi/JdbStopInNotificationThreadTest.java line 83:
> 81: counter++;
> 82: if (counter % 1000 == 0) {
> 83: System.gc(); // Encourage promotion into old/tenured generation
I wonder if `fullGC` from `WhiteBox.java` can be used here -- it would make the intention to run full-gc explicit.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/27266#discussion_r2346652763
More information about the serviceability-dev
mailing list