On Tue, 11 Jul 2023 17:03:26 GMT, Alan Bateman <al...@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. This pull request has now been integrated. Changeset: 92a04e20 Author: Alan Bateman <al...@openjdk.org> URL: https://git.openjdk.org/jdk/commit/92a04e201e68aa4d682053cef4b36180ec5620f5 Stats: 99 lines in 3 files changed: 95 ins; 0 del; 4 mod 8311867: StructuredTaskScope.shutdown does not interrupt newly started threads Reviewed-by: jpai ------------- PR: https://git.openjdk.org/jdk/pull/14833