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

Brian Burkhalter brian.burkhalter at oracle.com
Fri Mar 14 00:32:20 UTC 2014

On Mar 12, 2014, at 1:45 AM, Peter Levart wrote:

> What would the following cost?
>    private transient String stringCache;
>    public String toString() {
>       […]

This version did not show any significant difference in the benchmark results (updated)


versus the other approaches. This is not to say that the benchmark is valid for any of them. This approach does have the advantage or not using volatile.



More information about the core-libs-dev mailing list