On Wed, 7 May 2025 07:52:22 GMT, Per Minborg <pminb...@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