JDK 8 RFR 6470700: Math.random() / Math.initRNG() uses "double checked locking"
Chris Hegarty
chris.hegarty at oracle.com
Thu Aug 22 20:22:10 UTC 2013
On 08/22/2013 08:46 PM, Alan Bateman wrote:
> On 22/08/2013 20:41, Brian Burkhalter wrote:
>> JDK 8 Reviewers:
>>
>> The proposed patch is here:
>>
>> http://cr.openjdk.java.net/~bpb/6470700/
>>
>> JTREG tests pass and JMH benchmarking shows a very slight performance
>> improvement versus the extant code.
>>
> It looks okay to me although the downside of this idiom is yet another
> class (which I assume can private btw).
+1
-Chris.
>
> -Alan
More information about the core-libs-dev
mailing list