RFR: 8288899: java/util/concurrent/ExecutorService/CloseTest.java failed with "InterruptedException: sleep interrupted"
Doug Lea
dl at openjdk.org
Mon Jun 5 13:52:36 UTC 2023
Addresses Jdk 8288899 : java/util/concurrent/ExecutorService/CloseTest.java failed with "InterruptedException: sleep interrupted" and related issues.
This is a major ForkJoin update (and hard to review -- sorry) that finally addresses incompatibilities between ExecutorService and ForkJoinPool (which claims to implement it), with the goal of avoiding continuing bug reports and incompatibilities. Doing this required reworking internal control to use phaser/seqlock-style versioning schemes (affecting nearly every method) that ensure consistent data structures and actions without requiring global synchronization or locking on every task execution that would massively degrade performance. The previous lack of a solution to this was the main reason for these incompatibilities.
-------------
Commit messages:
- Rework versioning
- Merge branch 'openjdk:master' into JDK-8288899
- Merge branch 'openjdk:master' into JDK-8288899
- Merge branch 'openjdk:master' into JDK-8288899
- Merge branch 'openjdk:master' into JDK-8288899
- Merge branch 'openjdk:master' into JDK-8288899
- Reduce contention
- minor improvements and renamings
- Merge branch 'openjdk:master' into JDK-8288899
- Add invokeAnyUninterruptibly
- ... and 29 more: https://git.openjdk.org/jdk/compare/6edd786b...6a116f50
Changes: https://git.openjdk.org/jdk/pull/14301/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=14301&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8288899
Stats: 2951 lines in 6 files changed: 1125 ins; 658 del; 1168 mod
Patch: https://git.openjdk.org/jdk/pull/14301.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/14301/head:pull/14301
PR: https://git.openjdk.org/jdk/pull/14301
More information about the core-libs-dev
mailing list