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

Shaojin Wen swen at openjdk.org
Thu May 29 20:12:58 UTC 2025


On Sat, 24 May 2025 10:00:56 GMT, Shaojin Wen <swen at openjdk.org> wrote:

> 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.

This pull request has now been integrated.

Changeset: 727412d1
Author:    Shaojin Wen <swen at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/727412d1b5f0764363ebd2ff600d4b7f0c99bb9b
Stats:     39 lines in 10 files changed: 15 ins; 0 del; 24 mod

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

Reviewed-by: naoto

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

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


More information about the core-libs-dev mailing list