On Thu, 12 Nov 2026 15:15:25 GMT, Jaikiran Pai <[email protected]> wrote:

>> One possible venue of exception propagation is to ferry the exception to the 
>> Relay's task (presuming that it hasn't already been completed). This PR adds 
>> a regression test to ensure that exceptions are propagated for all the 
>> different modes of sorting.
>> 
>> One potential open question here is whether Arrays.parallelSort(…, 
>> Comparator) might need a CSR or not.
>> 
>> 
>> 
>> ---------
>> - [x] I confirm that I make this contribution in accordance with the 
>> [OpenJDK Interim AI Policy](https://openjdk.org/legal/ai).
>
> Hello Viktor, is this issue specific to only `Arrays.parallelSort()`? The 
> issue description, proposed fix and tests seem to indicate so. However, the 
> title of the issue seems to imply that this to be general problem with 
> ForkJoin pool (which surprised me a bit and prompted me to look at the PR).

@jaikiran Yeah, the title is a bit misleading, it is specifically referring to 
behavior when Arrays.parallelSort's Comparator is misbehaving and throwing 
exceptions. I'll update the title.

-------------

PR Comment: https://git.openjdk.org/jdk/pull/33878#issuecomment-6827634036

Reply via email to