8339635: StringConcatFactory optimization for CompactStrings off

Reviewed-by: liach
This commit is contained in:
Shaojin Wen 2024-09-06 18:37:29 +00:00 committed by Chen Liang
parent 8e580ec538
commit fbe2629303
3 changed files with 15 additions and 1 deletions

View file

@ -2642,6 +2642,10 @@ public final class System {
return new StringConcatHelper.Concat1(constants);
}
public byte stringInitCoder() {
return String.COMPACT_STRINGS ? String.LATIN1 : String.UTF16;
}
public int getCharsLatin1(long i, int index, byte[] buf) {
return StringLatin1.getChars(i, index, buf);
}