JDK-8331495 : Limit BasicDirectoryModel/LoaderThreadCount.java to Windows only
  • Type: Sub-task
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 23
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: linux,os_x
  • CPU: x86_64,aarch64
  • Submitted: 2024-05-01
  • Updated: 2024-11-12
  • Resolved: 2024-05-01
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 11 JDK 17 JDK 21 JDK 23 JDK 8
11.0.25-oracleFixed 17.0.13-oracleFixed 21.0.5-oracleFixed 23 b22Fixed 8u431Fixed
Related Reports
Relates :  
Description
As soon as test/jdk/javax/swing/plaf/basic/BasicDirectoryModel/LoaderThreadCount.java is integrated, it started failing in CI on Linux and macOS.

To reduce the noise, limit the test to Windows only where it's stable.
Comments
Fix request [17u] I backport this for parity with 17.0.13-oracle. No risk, only tests change. The test is limit to Windows, so backport with JDK-8331142 together, also backport with the new issue JDK-8331999 As https://bugs.openjdk.org/browse/JDK-8333880 not fixed, so this test may still fail.
06-11-2024

A pull request was submitted for review. Branch: master URL: https://git.openjdk.org/jdk17u-dev/pull/2605 Date: 2024-06-18 08:02:55 +0000
31-10-2024

A pull request was submitted for review. Branch: master URL: https://git.openjdk.org/jdk11u-dev/pull/2789 Date: 2024-06-18 08:03:47 +0000
09-07-2024

A pull request was submitted for review. Branch: master URL: https://git.openjdk.org/jdk17u-dev/pull/2590 Date: 2024-06-14 09:41:11 +0000
09-07-2024

Fix request [21u] I backport this for parity with 21.0.5-oracle. No risk, only a test change. Backport with JDK-8331142 together. Test pass. SAP nightly testing passed.
17-06-2024

A pull request was submitted for review. URL: https://git.openjdk.org/jdk21u-dev/pull/725 Date: 2024-06-14 09:36:27 +0000
14-06-2024

A pull request was submitted for review. URL: https://git.openjdk.org/jdk11u-dev/pull/2778 Date: 2024-06-14 09:44:36 +0000
14-06-2024

Unfortunately, there's now been a failure on Windows too. Number of snapshots: 20 Number of snapshots where number of loader threads: = 1: 19 = 2: 0 > 2: 1 Duration: 11,328 System.err Exception in Test Runner: class java.lang.RuntimeException: Detected 1 snapshots with several loading threads java.lang.RuntimeException: Detected 1 snapshots with several loading threads at LoaderThreadCount.runTest(LoaderThreadCount.java:167) at LoaderThreadCount.wrapper(LoaderThreadCount.java:107) at java.base/java.lang.Thread.run(Thread.java:1575) JavaTest Message: Test threw exception: java.lang.RuntimeException: Detected 1 snapshots with several loading threads JavaTest Message: shutting down test STATUS:Failed.`main' threw exception: java.lang.RuntimeException: Detected 1 snapshots with several loading threads
01-05-2024

A pull request was submitted for review. URL: https://git.openjdk.org/jdk22u/pull/175 Date: 2024-05-01 12:00:44 +0000
01-05-2024

Fix request: 22u Limits the test provided in JDK-8325179 to Windows only. The test proved to be unstable in CI on Linux and macOS. The backport is clean. Low risk. If JDK-8325179 is approved, this changeset must also be included. Pull request: https://github.com/openjdk/jdk22u/pull/175
01-05-2024

Changeset: 2a95cd47 Author: Alexey Ivanov <aivanov@openjdk.org> Date: 2024-05-01 16:38:25 +0000 URL: https://git.openjdk.org/jdk/commit/2a95cd473aaefcacd976d1c17aa2badf330a6c32
01-05-2024

A pull request was submitted for review. URL: https://git.openjdk.org/jdk/pull/19038 Date: 2024-05-01 16:29:10 +0000
01-05-2024