Barring other effects, it is likely that this test just needs to have some longer timeouts to ensure that a stall isn't likely to fail the test case. The shouldn't have any impact on test execution duration, as the test looks at tasks which *have not executed yet*.
------------- Commit messages: - Addressing a potential stall-induced test failure in ScheduledExecutorTest::testShutdownNow_delayedTasks Changes: https://git.openjdk.org/jdk/pull/25394/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=25394&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8357285 Stats: 5 lines in 1 file changed: 2 ins; 0 del; 3 mod Patch: https://git.openjdk.org/jdk/pull/25394.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/25394/head:pull/25394 PR: https://git.openjdk.org/jdk/pull/25394