RFR: 8296405: java/util/concurrent/forkjoin/AsyncShutdownNow.java is too slow
Alan Bateman
alanb at openjdk.org
Mon Nov 14 09:02:21 UTC 2022
java/util/concurrent/forkjoin/AsyncShutdownNow.java takes ~40s as each test uses a delay of 5s before it invokes shutdownNow. The test will run in <1s if changed to poll the thread state and invoke shutdownNow when the thread waits.
The update temporarily disables testInvokeAny because of a suspected issue doing shutdown at around the same that worker threads are spinning up. It duplicates more frequently (on Windows at least) with the updated test. JDK-8286352 and JDK-8288899 are two bugs on this issue. Doug Lea is looking into the issue. The test can be re-enabled when that issue is resolved.
-------------
Commit messages:
- Disable testInvokeAny
- Merge
- Initial commit
Changes: https://git.openjdk.org/jdk/pull/10986/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=10986&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8296405
Stats: 108 lines in 1 file changed: 50 ins; 41 del; 17 mod
Patch: https://git.openjdk.org/jdk/pull/10986.diff
Fetch: git fetch https://git.openjdk.org/jdk pull/10986/head:pull/10986
PR: https://git.openjdk.org/jdk/pull/10986
More information about the core-libs-dev
mailing list