Removing a layer of synchronization on Math.random

Martin Buchholz martinrb at google.com
Sat Jun 5 02:07:24 UTC 2010


Here's an optimization for Math.random() that appears to be safe,
despite the double-check access:

http://cr.openjdk.java.net/~martin/webrevs/openjdk7/Math.random/

David, if you agree, could you file a bug?

Thanks,

Martin



More information about the core-libs-dev mailing list