RFR: 8362376: Use @Stable annotation in Java FDLIBM implementation
Raffaello Giulietti
rgiulietti at openjdk.org
Thu Jul 17 10:33:49 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.
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
More information about the core-libs-dev
mailing list