On Mon, 5 Dec 2022 10:33:38 GMT, Alan Bateman <al...@openjdk.org> wrote:

>> src/java.base/share/classes/java/util/concurrent/ForkJoinPool.java line 2920:
>> 
>>> 2918:      * @since 20
>>> 2919:      */
>>> 2920:     public <T> ForkJoinTask<T> externalSubmit(ForkJoinTask<T> task) {
>> 
>> @AlanBateman Does it make sense to check the nullness of the `task` before 
>> going into the storeStoreFence etc?
>
> It's only to be the same as poolSubmit.

@AlanBateman Then I presume that there's a good reason for not checking. :)

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

PR: https://git.openjdk.org/jdk/pull/11319

Reply via email to