RFR: 8310901: Convert String::newStringNoRepl with Latin-1 to String::newStringLatin1NoRepl [v2]

Glavo duke at openjdk.org
Mon Jun 26 16:19:04 UTC 2023


On Mon, 26 Jun 2023 16:02:57 GMT, Chen Liang <liach at 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


More information about the core-libs-dev mailing list