RFR: 8288899: java/util/concurrent/ExecutorService/CloseTest.java failed with "InterruptedException: sleep interrupted" [v45]

Doug Lea dl at openjdk.org
Mon Oct 2 15:04:17 UTC 2023


On Mon, 2 Oct 2023 14:51:01 GMT, Doug Lea <dl at openjdk.org> wrote:

>> 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.
>
> Doug Lea has updated the pull request incrementally with one additional commit since the last revision:
> 
>   cleanup

Backport instructions:
1. change all methods with new Since tags to nonpublic
2. Comment/uncomment ForkJonPool.invokeAll according to instructions there (the new version fixes an ExecutorService signature incompatibility, at the price of a backwards incompatibility in throws clause.)
3. It is possible that some (incorrect) java/util/concurrent/tck tests will fail, in which case replace with new versions

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

PR Comment: https://git.openjdk.org/jdk/pull/14301#issuecomment-1743185939


More information about the core-libs-dev mailing list