JDK-8245304 : Re-examine ThreadLocal usage in java.math.BigDecimal
  • Type: Sub-task
  • Component: core-libs
  • Sub-Component: java.math
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2020-05-19
  • Updated: 2020-09-19
  • Resolved: 2020-08-13
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 16
16 b12Fixed
Related Reports
Relates :  
Description
Need to measure the impact of not caching StringBuilderHelper.
Comments
We've been through the changes in JDK-6622432. The TL may have been useful before the stringCache was added. The only method that seems to benefit from the TL now is the toEngineeringString method but that benefit goes away if the StringBuilder is created with a larger capacity (which avoids resizing).
19-09-2020

URL: https://hg.openjdk.java.net/jdk/jdk/rev/a4a148fe1005 User: bpb Date: 2020-08-13 16:34:11 +0000
13-08-2020

Thanks for confirming that [~alanb].
12-08-2020

The use of ThreadLocal was added by JDK-6622432. The performance metrics from that issue should be re-examined with the proposed changes.
11-08-2020