Re: 8245304: Re-examine ThreadLocal usage in java.math.BigDecimal

2020-08-12 Thread Alan Bateman
On 11/08/2020 18:32, Brian Burkhalter wrote: To fix [1], please consider [2] which replaces the ThreadLocal “threadLocalStringBuilderHelper” with straightforward use of a StringBuilderHelper instance. The initial capacity of the StringBuilder instance variable of StringBuilderHelper is also

Re: 8245304: Re-examine ThreadLocal usage in java.math.BigDecimal

2020-08-11 Thread Joe Darcy
Looks fine; thanks, -Joe On 8/11/2020 10:32 AM, Brian Burkhalter wrote: To fix [1], please consider [2] which replaces the ThreadLocal “threadLocalStringBuilderHelper” with straightforward use of a StringBuilderHelper instance. The initial capacity of the StringBuilder instance variable of

8245304: Re-examine ThreadLocal usage in java.math.BigDecimal

2020-08-11 Thread Brian Burkhalter
To fix [1], please consider [2] which replaces the ThreadLocal “threadLocalStringBuilderHelper” with straightforward use of a StringBuilderHelper instance. The initial capacity of the StringBuilder instance variable of StringBuilderHelper is also doubled from 16 to 32. Microbenchmarking was