RFR: 8356114: java/foreign/TestBufferStackStress2.java failed with junit action timed out

Alan Bateman alanb at openjdk.org
Wed May 7 08:03:19 UTC 2025


On Wed, 7 May 2025 07:52:22 GMT, Per Minborg <pminborg at openjdk.org> wrote:

> This PR proposes to skip a stress test if the `main` thread is a virtual thread.

test/jdk/java/foreign/TestBufferStackStress2.java line 73:

> 71:             System.out.println("Skipped because the main thread is a virtual thread");
> 72:             return;
> 73:         }

This is okay. An alternative that we use in a few other tests is to use the Assumptions API t, e.g. assumeFalse(Thread.currentThread().isVirtual(), "message").

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

PR Review Comment: https://git.openjdk.org/jdk/pull/25084#discussion_r2077037194


More information about the core-libs-dev mailing list