On Wed, 1 Feb 2023 15:51:33 GMT, kabutz <[email protected]> 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 <[email protected]> Committer: Tagir F. Valeev <[email protected]> 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
