RFR: 8301637: ThreadLocalRandom.current().doubles().parallel() contention

kabutz duke at openjdk.org
Thu Feb 2 13:51:27 UTC 2023


On Thu, 2 Feb 2023 07:03:44 GMT, Alan Bateman <alanb at openjdk.org> wrote:

>> ThreadLocalRandom.current().doubles().parallel() had a bad regression, because it called the superclass methods of the ThreadLocalRandomProxy's nextDouble() method instead of delegating to the ThreadLocalRandom.current().
>> 
>> Affects all versions of ThreadLocalRandom since Java 17.
>
> Marked as reviewed by alanb (Reviewer).

Could someone please sponsor this change? @AlanBateman or @jddarcy ?

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

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


More information about the core-libs-dev mailing list