8336831: Optimize StringConcatHelper.simpleConcat

Reviewed-by: liach, redestad, rriggs
This commit is contained in:
Shaojin Wen 2024-07-23 20:21:08 +00:00 committed by Chen Liang
parent 4c91d5cb41
commit 476d2ae69d
2 changed files with 33 additions and 16 deletions

View file

@ -2987,7 +2987,7 @@ public final class String
if (str.isEmpty()) {
return this;
}
return StringConcatHelper.simpleConcat(this, str);
return StringConcatHelper.doConcat(this, str);
}
/**