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

Shaojin Wen swen at openjdk.org
Mon May 26 13:19:08 UTC 2025


> Classes such as java.lang.CharacterDataXXX have multiple static final arrays, these are immutable, We should add `@Stable` and final to provide information to the optimizer.

Shaojin Wen has updated the pull request incrementally with one additional commit since the last revision:

  add '@stabletostatic final char[][][] charMap`, from @minborg

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/25430/files
  - new: https://git.openjdk.org/jdk/pull/25430/files/d5936dd5..d9f0e5e7

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=25430&range=01
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=25430&range=00-01

  Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 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