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