RFR: 8362376: Use @Stable annotation in Java FDLIBM implementation

Shaojin Wen swen at openjdk.org
Thu Jul 17 10:52:48 UTC 2025


On Wed, 16 Jul 2025 04:53:04 GMT, Joe Darcy <darcy at openjdk.org> wrote:

> Add `@Stable` to the static final arrays used in the Java port of FDLIBM.

src/java.base/share/classes/java/lang/FdLibm.java line 457:

> 455:             pio4  =  0x1.921fb54442d18p-1,  // 7.85398163397448278999e-01
> 456:             pio4lo=  0x1.1a62633145c07p-55; // 3.06161699786838301793e-17
> 457:         @Stable private static final double

Suggestion:

        @Stable 
        private static final double

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

PR Review Comment: https://git.openjdk.org/jdk/pull/26341#discussion_r2213012163


More information about the core-libs-dev mailing list