[jdk11u-dev] RFR: 8331142: Add test for number of loader threads in BasicDirectoryModel

Andrew Lu andrewlu at openjdk.org
Tue Jun 18 08:12:11 UTC 2024


I backport this for parity with 11.0.25-oracle.
The test is limit to Windows, so backport with JDK-8331495 together, also backport with the new issue JDK-8331999

threads.addAll(Stream.generate(() -> new Thread(new Scanner(fc)))
                                 .limit(NUMBER_OF_THREADS)
                                 .toList());
change to as not supported in 11.

threads.addAll(Stream.generate(() -> new Thread(new Scanner(fc)))
                                 .limit(NUMBER_OF_THREADS)
                                 .collect(Collectors.toList()));

-------------

Commit messages:
 - Backport fcd7fb74c7654956660082c83e42d2262478a1e5

Changes: https://git.openjdk.org/jdk11u-dev/pull/2789/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk11u-dev&pr=2789&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8331142
  Stats: 278 lines in 1 file changed: 278 ins; 0 del; 0 mod
  Patch: https://git.openjdk.org/jdk11u-dev/pull/2789.diff
  Fetch: git fetch https://git.openjdk.org/jdk11u-dev.git pull/2789/head:pull/2789

PR: https://git.openjdk.org/jdk11u-dev/pull/2789


More information about the jdk-updates-dev mailing list