On Mon, 16 Mar 2026 15:10:53 GMT, Volkan Yazici <[email protected]> wrote:

>> Improve input validation checks and documentation of the 
>> `java.lang.StringUTF16` intrinsics.
>> 
>> ### References:
>> 
>> - [JDK-8374582] #29164 — ditto for `java.lang.StringCoding`
>> - [JDK-8367129] #28832 — ditto for `java.lang.StringLatin1`
>> 
>> [JDK-8367129]: https://bugs.openjdk.org/browse/JDK-8367129
>> [JDK-8374582]: https://bugs.openjdk.org/browse/JDK-8374582
>
> Volkan Yazici has updated the pull request incrementally with one additional 
> commit since the last revision:
> 
>   Use `write` instead of `insert` in `putChar` docs

src/hotspot/share/opto/library_call.cpp line 1547:

> 1545: bool LibraryCallKit::inline_string_toBytesU() {
> 1546:   // Get the arguments.
> 1547:   assert(callee()->signature()->size() == 3, "character array encoder 
> requires 3 arguments");

Good idea! Could we add it to `getChars0` for consistency?

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

PR Review Comment: https://git.openjdk.org/jdk/pull/30139#discussion_r2944865988

Reply via email to