JDK 9 RFR of 6375303: Review use of caching in BigDecimal

Brian Burkhalter brian.burkhalter at oracle.com
Fri Mar 14 14:17:58 UTC 2014


On Mar 14, 2014, at 3:39 AM, Peter Levart wrote:

> But in general it would be better to just use "ThreadLocalRandom.current()" everywhere you use "rnd" variable. This is precisely it's purpose - a random number generator that is never contended. The overhead of ThreadLocalRandom.current() call is hardly measurable by itself.

I'll update that and re-run some of the benchmarks later.

Thanks,

Brian


More information about the core-libs-dev mailing list