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

kabutz duke at openjdk.org
Thu Feb 2 18:31:30 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.

This pull request has now been integrated.

Changeset: cf6b9eb8
Author:    Dr Heinz M. Kabutz <heinz at javaspecialists.eu>
Committer: Tagir F. Valeev <tvaleev at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/cf6b9eb8c8cca4a54fbd97fb073eafc1b8835099
Stats:     4 lines in 1 file changed: 4 ins; 0 del; 0 mod

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

Reviewed-by: alanb

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

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


More information about the core-libs-dev mailing list