8224986: (str) optimize StringBuilder.append(CharSequence, int, int) for String arguments

Reviewed-by: jlaskey, rriggs
This commit is contained in:
Claes Redestad 2019-05-31 12:20:21 +02:00
parent 25b1131e33
commit fd7c38aa35
3 changed files with 138 additions and 6 deletions

View file

@ -3386,7 +3386,7 @@ public final class String
return value;
}
private boolean isLatin1() {
boolean isLatin1() {
return COMPACT_STRINGS && coder == LATIN1;
}