mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 14:54:52 +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
|
@ -1196,9 +1196,14 @@ public final class StringConcatFactory {
|
|||
|
||||
/**
|
||||
* Construct the MethodType of the coder method. The first parameter is the initialized coder.
|
||||
* Only parameter types which can be UTF16 are added. Returns null if no such parameter exists.
|
||||
* Only parameter types which can be UTF16 are added.
|
||||
* Returns null if no such parameter exists or CompactStrings is off.
|
||||
*/
|
||||
private static MethodTypeDesc coderArgsIfMaybeUTF16(MethodType concatArgs) {
|
||||
if (JLA.stringInitCoder() != 0) {
|
||||
return null;
|
||||
}
|
||||
|
||||
int parameterCount = concatArgs.parameterCount();
|
||||
|
||||
int maybeUTF16Count = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue