On Mon, 26 Jun 2023 16:02:57 GMT, Chen Liang <li...@openjdk.org> wrote:
> This is just a copycat of the original newStringNoRepl, which should be > fixed; newStringUTF8NoRepl has no such issue. Unfortunately, the behavior of `newStringUTF8NoRepl` is not the same as that of `newStringNoRepl`, as it actually always copy the byte array. I have tried to change its behavior to be consistent with newStringNoRepl, but unfortunately it was not accepted. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/14655#discussion_r1242442737