On Sat, 24 May 2025 10:00:56 GMT, Shaojin Wen <[email protected]> wrote:
> 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.
make/jdk/src/classes/build/tools/generatecharacter/GenerateCharacter.java line
1195:
> 1193: result.append(" @Stable static final ");
> 1194: result.append(atype);
> 1195: result.append(" ").append(name).append("[");
While you are at it - when Csyntax == false, can we make it print `atype[]
name` instead of `atype name[]`?
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/25430#discussion_r2106007546