mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +02:00
8338930: StringConcatFactory hardCoded string concatenation strategy
Reviewed-by: redestad, liach
This commit is contained in:
parent
ad104932e6
commit
4d597de893
3 changed files with 130 additions and 49 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue