RFR: 8311867: StructuredTaskScope.shutdown does not interrupt newly started threads
Alan Bateman
alanb at openjdk.org
Wed Jul 12 12:04:14 UTC 2023
On Wed, 12 Jul 2023 11:47:45 GMT, Jaikiran Pai <jpai at openjdk.org> wrote:
> As for the 15 "afterShutdown" forks() that follow, they would already notice that the scope is shutdown and won't start the new threads.
> Did I misunderstand this test?
The test arranges for a subtask to do shutdown, it's not done by the main task. That setups up the conditions for the shutdown to race with the subsequent forking done by the main task.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/14833#discussion_r1261069364
More information about the core-libs-dev
mailing list