RFR: 8311867: StructuredTaskScope.shutdown does not interrupt newly started threads
Jaikiran Pai
jpai at openjdk.org
Wed Jul 12 12:04:12 UTC 2023
On Tue, 11 Jul 2023 17:03:26 GMT, Alan Bateman <alanb at openjdk.org> wrote:
> StructuredTaskScope.shutdown can sometimes not interrupt the thread for a newly forked subtask, leading to join blocking until subtask completes. The "hang" can be duplicated with a stress test that shuts down the scope while a long running subtask is being forked. The bug is in the underlying thread flock code where it filters the threads to just the live threads and so filters out new/unstarted threads, that filtering was left over from some refactoring in the loom repo a long time ago and should have been removed.
Marked as reviewed by jpai (Reviewer).
-------------
PR Review: https://git.openjdk.org/jdk/pull/14833#pullrequestreview-1526191301
More information about the core-libs-dev
mailing list