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

wenshao shaojin.wensj at alibaba-inc.com
Sat May 24 17:55:30 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.
such as
```java
class CharacterData00 {
@Stable static final char[] X =
@Stable static final char[] Y =
@Stable static final int[] A =
@Stable static final char[] B =
}
```
-
Shaojin Wen
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/core-libs-dev/attachments/20250525/6796825a/attachment.htm>


More information about the core-libs-dev mailing list