RFR: 8341470: BigDecimal.stripTrailingZeros() optimization [v12]

Raffaello Giulietti rgiulietti at openjdk.org
Fri Oct 4 17:18:39 UTC 2024


On Fri, 4 Oct 2024 17:11:51 GMT, Archie Cobbs <acobbs at openjdk.org> wrote:

>> @archiecobbs AFAIK, the documentation of `BigDecimal` does not specify that the class is thread-safe, but I could be wrong...
>
> @fabioromano1, this is a static method manipulating static fields that are shared by all instances; whether individual instances are thread safe is a separate and unrelated issue.

The real problem here is the maximal size this table can reach and the time it takes to be filled in the worst case: around 300 MB and several minutes.

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/21323#discussion_r1788033193


More information about the core-libs-dev mailing list