Integrated: 8311867: StructuredTaskScope.shutdown does not interrupt newly started threads
Alan Bateman
alanb at openjdk.org
Thu Jul 13 07:36:18 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.
This pull request has now been integrated.
Changeset: 92a04e20
Author: Alan Bateman <alanb at 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
More information about the core-libs-dev
mailing list