RFR: 8357913: Add `@Stable` to BigInteger and BigDecimal
ExE Boss
duke at openjdk.org
Tue May 27 19:52:01 UTC 2025
On Sun, 25 May 2025 22:35:56 GMT, Shaojin Wen <swen at openjdk.org> wrote:
> Some static final arrays of BigInteger and BigDecimal are stable and immutable. We should add `@Stable` to give the optimizer more information
Note that `BigInteger.mag` should probably also be made `@Stable` once `BigInteger.largePrime(…)` is changed to not write to `p.mag[…]`.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/25437#issuecomment-2909052698
More information about the core-libs-dev
mailing list