JDK 8 RFC 7189139 version 2: BigInteger's staticRandom field can be a source of bottlenecks

Aleksey Shipilev aleksey.shipilev at oracle.com
Wed Oct 9 07:50:17 UTC 2013


On 10/09/2013 12:05 AM, Brian Burkhalter wrote:
> Based on previous comments by Aleksey and Paul I created this test
> 
> http://cr.openjdk.java.net/~bpb/7189139/PrimeTest.java
> 
> and ran it with the list of primes supplied by Aleksey, N=60000000, and certainty=100. This is the output:
> 
> ---
> Primes: /Users/bpb/Desktop/primes-50M.txt
> N = 60000000
> certainty = 100
> 3562115 probable primes out of 3562115 candidates
> Prime test = true
> Not-prime test = true
> Test succeeded!

Awesome, thanks!

> An updated webrev which differs only in having a correct Hg header is here:
> 
> http://cr.openjdk.java.net/~bpb/7189139/webrev.2/

Thumbs up for the fix.

-Aleksey.




More information about the core-libs-dev mailing list