RFR: 8377313: java/lang/Thread/virtual/stress/GetStackTraceALotWhenPinned.java#id0 timeout

Jaikiran Pai jpai at openjdk.org
Fri Feb 6 09:46:52 UTC 2026


On Fri, 6 Feb 2026 08:40:49 GMT, Alan Bateman <alanb at openjdk.org> wrote:

> Dial down the number of iterations in the GetStackTraceALotWhenPinned.java and GetStackTraceALotWhenBlocking.java stress tests.
> 
> We have several stress tests that bash on Thread::getStackTrace while virtual threads are in transitions (mount/unmount when parking, blocking, waiting, ..). Some of these tests are running slower since JDK-8376568. Further work is required to reduce/avoid the wait in MountUnmountDisabler::disable_transition_for_one, tracked as JDK-8377312. In the mean-time, we dial down the tests.

This looks OK to me. Would `GetStackTraceALotWithTimedWait` need a simlar change in its test defintion and at:


int iterations = args.length > 0 ? Integer.parseInt(args[0]) : 100_000;

-------------

Marked as reviewed by jpai (Reviewer).

PR Review: https://git.openjdk.org/jdk/pull/29598#pullrequestreview-3761900656


More information about the core-libs-dev mailing list