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

2023-02-02 Thread kabutz
On Thu, 2 Feb 2023 07:03:44 GMT, Alan Bateman 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(). >> >> Affe

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

2023-02-01 Thread Alan Bateman
On Wed, 1 Feb 2023 15:51:33 GMT, kabutz 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 ver

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

2023-02-01 Thread Joe Darcy
On Wed, 1 Feb 2023 20:29:27 GMT, kabutz wrote: > Could this fix be back-ported to JDK 17? It's been an issue from then until > now. Assuming the fix goes into mainline, there are procedures for backporting to the update releases; e.g. https://wiki.openjdk.org/display/JDKUpdates/JDK+17u -

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

2023-02-01 Thread kabutz
On Wed, 1 Feb 2023 15:51:33 GMT, kabutz 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 ver