On Sat, 24 May 2025 23:04:50 GMT, Chen Liang <li...@openjdk.org> 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[]`? This will require more changes, and has no benefits other than better coding style. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/25430#discussion_r2106030868