8336856: Efficient hidden class-based string concatenation strategy

Co-authored-by: Claes Redestad <redestad@openjdk.org>
Reviewed-by: redestad, liach
This commit is contained in:
Shaojin Wen 2024-08-16 13:18:02 +00:00 committed by Claes Redestad
parent ddbc0b6a39
commit 5022109b2a
8 changed files with 1329 additions and 146 deletions

View file

@ -2623,6 +2623,10 @@ public final class System {
return StringConcatHelper.mix(lengthCoder, value);
}
public Object stringConcat1(String[] constants) {
return new StringConcatHelper.Concat1(constants);
}
public int getCharsLatin1(long i, int index, byte[] buf) {
return StringLatin1.getChars(i, index, buf);
}