This PR addresses the intermittent time out by creating two, long-lived threads 
to perform all of the work instead of creating and waiting on 2 threads 10000 
times. CyclicBarrier objects are used to coordinate the threads.


---------
- [x] I confirm that I make this contribution in accordance with the [OpenJDK 
Interim AI Policy](https://openjdk.org/legal/ai).

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

Commit messages:
 - 8387730: Test javax/crypto/KDF/KDFDelayedProviderThreadingTest.java timed out

Changes: https://git.openjdk.org/jdk/pull/33165/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=33165&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8387730
  Stats: 65 lines in 1 file changed: 46 ins; 16 del; 3 mod
  Patch: https://git.openjdk.org/jdk/pull/33165.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/33165/head:pull/33165

PR: https://git.openjdk.org/jdk/pull/33165

Reply via email to