RFR: 8306647: Implementation of Structured Concurrency (Preview) [v2]
Alan Bateman
alanb at openjdk.org
Wed May 31 13:19:00 UTC 2023
On Tue, 30 May 2023 17:31:54 GMT, Rémi Forax <forax at openjdk.org> wrote:
> One surprising thing is that Subtask.get() give less leeway to the owner thread than to the other virtual threads so in onComplete() storing a Subtask to use it later by the owner thread does not work well if join() is not called yet. This is perhaps a bit too much.
Maybe but it would be a bug if the owner were to call Subtask::get before joining. This is easy to detect for subtasks that are forked by the owner. Time will tell how common it will be for subtasks to fork additional subtasks.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/13932#issuecomment-1570217584
More information about the core-libs-dev
mailing list