On Tue, 30 May 2023 17:31:54 GMT, Rémi Forax <fo...@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