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

Valerie Peng valerie.peng at oracle.com
Thu Jan 28 02:50:07 UTC 2016


Changes look fine except for the following nit:
NativePRNG.java: mark all constants final.

Thanks,
Valerie

On 12/1/2015 3:44 PM, 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