RFR: 8367129: Move input validation checks to Java for java.lang.StringLatin1 intrinsics [v2]

Volkan Yazici vyazici at openjdk.org
Fri Feb 13 18:20:28 UTC 2026


On Fri, 13 Feb 2026 14:31:17 GMT, Raffaello Giulietti <rgiulietti at openjdk.org> wrote:

>> src/java.base/share/classes/java/lang/StringUTF16.java line 981:
>> 
>>> 979:     }
>>> 980: 
>>> 981:     private static int indexOfLatin1Unsafe(byte[] src, int srcCount, byte[] tgt, int tgtCount, int fromIndex) {
>> 
>> Similarly to above, documenting the expectations about the arguments here would help.
>
> Be aware that I didn't review the native code.

Added documentation in 7efdc944aa3.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/28832#discussion_r2805478142


More information about the core-libs-dev mailing list