Integrated: 8313290: Misleading exception message from STS.Subtask::get when task forked after shutdown
    Alan Bateman 
    alanb at openjdk.org
       
    Sat Aug 19 18:45:35 UTC 2023
    
    
  
On Fri, 28 Jul 2023 20:33:01 GMT, Alan Bateman <alanb at openjdk.org> wrote:
> This is a small issue with StructuredTaskScope. If the owner attempts to fork a subtask and the task scope is shutdown then the implementation doesn't currently force the owner to join when it's the first fork in a new round of forking. The result is that broken code calling Subtask::get throws ISE with the wrong exception message.
> 
> The existing test for this API is updated to remove a duplicate test and also fix two tasks that didn't call join.
This pull request has now been integrated.
Changeset: ed0f75f2
Author:    Alan Bateman <alanb at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/ed0f75f2666f61ec3d8ccb78594a21db9f1be50a
Stats:     27 lines in 2 files changed: 4 ins; 19 del; 4 mod
8313290: Misleading exception message from STS.Subtask::get when task forked after shutdown
Reviewed-by: psandoz
-------------
PR: https://git.openjdk.org/jdk/pull/15076
    
    
More information about the core-libs-dev
mailing list