RFR: 8297495: j.u.concurrent updates for JDK 20 [v2]
Viktor Klang
duke at openjdk.org
Mon Dec 5 11:18:08 UTC 2022
On Mon, 5 Dec 2022 10:33:38 GMT, Alan Bateman <alanb at 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
More information about the core-libs-dev
mailing list