8338930: StringConcatFactory hardCoded string concatenation strategy

Reviewed-by: redestad, liach
This commit is contained in:
Shaojin Wen 2024-09-10 12:33:07 +00:00 committed by Claes Redestad
parent ad104932e6
commit 4d597de893
3 changed files with 130 additions and 49 deletions

View file

@ -2647,6 +2647,10 @@ public final class System {
return String.COMPACT_STRINGS ? String.LATIN1 : String.UTF16;
}
public byte stringCoder(String str) {
return str.coder();
}
public int getCharsLatin1(long i, int index, byte[] buf) {
return StringLatin1.getChars(i, index, buf);
}