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

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

The arrays at L.2257-2262 could be declared `static` and `@Stable` as well, and 
moved outside the method.

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

> 813:          */
> 814: 
> 815:         private static final int init_jk[] = {2, 3, 4, 6}; // initial 
> value for jk

Suggestion:

        @Stable private static final int init_jk[] = {2, 3, 4, 6}; // initial 
value for jk

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

PR Review: https://git.openjdk.org/jdk/pull/26341#pullrequestreview-3028924953
PR Review Comment: https://git.openjdk.org/jdk/pull/26341#discussion_r2212968109

Reply via email to