RFR: 8366017: Extend the set of inputs handled by fast paths in FloatingDecimal [v6]

Joe Darcy darcy at openjdk.org
Wed Oct 29 04:08:05 UTC 2025


On Tue, 28 Oct 2025 11:03:00 GMT, Raffaello Giulietti <rgiulietti at openjdk.org> wrote:

>> Yet another step in modernizing `FloatingDecimal`s floating-point parsing.
>
> Raffaello Giulietti has updated the pull request with a new target base due to a merge or a rebase. The pull request now contains 36 commits:
> 
>  - Merge branch 'master' into 8366017
>  - Added test for all float->String->float roundtrips.
>  - Merge branch 'master' into 8366017
>  - Added tests to exercise fast paths.
>  - Fix a rare bug.
>  - Merge branch 'master' into 8366017
>  - More complete benchmarks.
>  - JMH benchmarks.
>  - Adapted tests to more restricted access.
>  - Merge branch 'master' into 8366017
>  - ... and 26 more: https://git.openjdk.org/jdk/compare/96259936...c3485864

src/java.base/share/classes/jdk/internal/math/FDBigInteger.java line 55:

> 53:         Object[] caches = archivedCaches;
> 54:         if (caches == null) {
> 55:             long[] long5pow = {

Would it be worthwhile to make these arrays `@Stable`?

In the future, might be a candidate for StableConstant/LazyValue functionality.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/26990#discussion_r2471667444


More information about the core-libs-dev mailing list