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:2024-11-20
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.
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).