RFR: 8354894: java/lang/Thread/virtual/Starvation.java timeout on server with high CPUs
SendaoYan
syan at openjdk.org
Mon Sep 29 09:05:17 UTC 2025
Hi all,
We observed java/lang/Thread/virtual/Starvation.java intermittent timed out on server with many CPU core number. The more CPU core number the 'runTest' will create more pinned virtual threads. This PR compute an iteration count which divide the CPU core number will make test run passed steady on server with high CPUs.
Before apply the proposed patch, test run finish 257 seconds, after apply the proposed patch test run finish 1.2 seconds on the 2 sockets system with Intel(R) Xeon(R) Platinum 8480+. So I remove the 'timeout=800', I think the default timeout 120 will be enough.
-------------
Commit messages:
- 8354894: java/lang/Thread/virtual/Starvation.java timeout on server with high CPUs
Changes: https://git.openjdk.org/jdk/pull/27543/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=27543&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8354894
Stats: 10 lines in 1 file changed: 7 ins; 0 del; 3 mod
Patch: https://git.openjdk.org/jdk/pull/27543.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/27543/head:pull/27543
PR: https://git.openjdk.org/jdk/pull/27543
More information about the core-libs-dev
mailing list