JDK-8344577 : Virtual thread tests are timing out on some macOS systems
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.lang
  • Affected Version: 24
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: os_x
  • CPU: x86_64
  • Submitted: 2024-11-19
  • Updated: 2025-10-13
  • Resolved: 2024-11-25
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 21 JDK 24
21.0.10Fixed 24 b26Fixed
Related Reports
Relates :  
Relates :  
Description
Tests:
 - java/lang/Thread/virtual/stress/ParkALot.java#id0
 - java/lang/Thread/virtual/stress/GetStackTraceALotWhenBlocking.java#id0

Nothing to go on in the logs.

2024-11-19T19:10:00.941008Z 1 thread(s) ...
Timeout signalled after 480 seconds
----------System.err:(0/0)----------


2024-11-19T19:29:25.073652Z => 60709 of 100000
2024-11-19T19:29:26.098611Z => 60750 of 100000
Timeout signalled after 1200 seconds
2024-11-19T19:29:27.108925Z => 60785 of 100000
...
Comments
Fix request (21u): As I've seen the mentioned tests failing on x86 mac hardware in our CI, I'd like to backport these test updates to 21u, as far as they apply (some tests do not exist in 21). Risk is low, change is test-only. Went through SAP's nightlies and GHA without issues spotted.
08-10-2025

A pull request was submitted for review. Branch: master URL: https://git.openjdk.org/jdk21u-dev/pull/2297 Date: 2025-10-06 12:20:08 +0000
06-10-2025

Changeset: a032de29 Branch: master Author: Alan Bateman <alanb@openjdk.org> Date: 2024-11-25 15:34:13 +0000 URL: https://git.openjdk.org/jdk/commit/a032de2904baf83143415858ed7191549c659035
25-11-2024

A pull request was submitted for review. Branch: master URL: https://git.openjdk.org/jdk/pull/22357 Date: 2024-11-25 07:30:41 +0000
25-11-2024

The GHA failure is GetStackTraceALotWhenBlocking.java. It looks like it's the older test and pre-dates the dial down in JDK-8344143. As regards the latest timeouts then GetStackTraceALotWhenBlocking.java and ParkALot.java are executing really slowly and concurrently with other tests (the jtreg run is -concurrency:4). The system 16GB, I'm trying to see if the system is over provisioned and swapping.
20-11-2024

GHA report the same failure. https://github.com/sendaoYan/jdk-ysd/actions/runs/11913079369/job/33200447221
20-11-2024