RFR: 8098581 SecureRandom.nextBytes() hurts performance with small size requests

Seán Coffey sean.coffey at oracle.com
Thu Dec 3 18:38:55 UTC 2015


Hey Tony,

looks like a fix that could come back to jdk8u-dev at some stage. Thanks 
for taking this one on.

Adding SecureRandom to the sunpkcs11-solaris.cfg file is a nice move. 
Would you agree that JDK-8058455 could be closed out as a duplicate ?

Regards,
Sean.

On 01/12/2015 23:44, Anthony Scarpino wrote:
> Hi all,
>
> I'd like a review of this change.  It improves nextBytes() performance 
> by allowing the random buffer to grow and shrink as random data is 
> needed and remove the high level synchronization. Also disable 
> SecureRandom for Solaris PKCS11 as it's not as fast as native.
>
> http://cr.openjdk.java.net/~ascarpino/8098581/webrev/
>
> Thanks
>
> Tony



More information about the security-dev mailing list