mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +02:00
8339635: StringConcatFactory optimization for CompactStrings off
Reviewed-by: liach
This commit is contained in:
parent
8e580ec538
commit
fbe2629303
3 changed files with 15 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue