RFR: 8357690: Add @Stable and final to java.lang.CharacterDataLatin1 and other CharacterData classes

Shaojin Wen swen at openjdk.org
Sun May 25 00:08:32 UTC 2025


Classes such as java.lang.CharacterDataXXX have multiple static final arrays, which will not be modified. We should add @Stable to provide information to the optimizer.

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

Commit messages:
 - sealed & final
 - add @Stable
 - stable

Changes: https://git.openjdk.org/jdk/pull/25430/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=25430&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8357690
  Stats: 31 lines in 10 files changed: 15 ins; 0 del; 16 mod
  Patch: https://git.openjdk.org/jdk/pull/25430.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/25430/head:pull/25430

PR: https://git.openjdk.org/jdk/pull/25430


More information about the core-libs-dev mailing list