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

Brian Burkhalter brian.burkhalter at oracle.com
Mon Mar 24 17:48:13 UTC 2014


Hi Peter,

On Mar 24, 2014, at 2:21 AM, Peter Levart <peter.levart at gmail.com> wrote:

> Thanks to Aleksey for re-establishing the access, I bring you results of the microbenchmark from his quad-core Cortex-A9:

Thanks to you and Aleksey for taking the initiative to test on that platform.

> ...as can be seen, the double-checked read-then-volatile-read+CAS trick is about 15% faster than classic volatile-read+CAS in this case.

Just to be sure, by “double-checked read-then-volaite-read+CAS trick” you intend "the variant with two methods toString/toStringSlow?”

Thanks,

Brian


More information about the core-libs-dev mailing list