RFR: 8301637: ThreadLocalRandom.current().doubles().parallel() contention
kabutz
duke at openjdk.org
Wed Feb 1 20:32:10 UTC 2023
On Wed, 1 Feb 2023 15:51:33 GMT, kabutz <duke 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.
Could this fix be back-ported to JDK 17? It's been an issue from then until now.
-------------
PR: https://git.openjdk.org/jdk/pull/12366
More information about the core-libs-dev
mailing list