<div class="__aliyun_email_body_block"><div  style="font-family: Tahoma, Arial, STHeitiSC-Light, SimSun"><div  style="clear: both;"><span >With the introduction of 8338930: StringConcatFactory hardCoded string concatenation strategy, the StringConcatFactory#generateMHInlineCopy method is no longer used by default.</span></div><div  style="clear: both;"><span ><br ></span></div><div  style="clear: both;"><span >```java</span></div><div  style="clear: both;"><span ><span >public final class StringConcatFactory {</span></span><div  style="clear: both;">    private static final int HIGH_ARITY_THRESHOLD;</div><div  style="clear: both;">    static {</div><div  style="clear: both;">        String highArity = VM.getSavedProperty("java.lang.invoke.StringConcat.highArityThreshold");</div><div  style="clear: both;">        HIGH_ARITY_THRESHOLD = highArity != null ? Integer.parseInt(highArity) : 0;</div><div  style="clear: both;">    }</div><div  style="clear: both;">    public static CallSite makeConcatWithConstants(MethodHandles.Lookup lookup,</div><div  style="clear: both;">                                                   String name,</div><div  style="clear: both;">                                                   MethodType concatType,</div><div  style="clear: both;">                                                   String recipe,</div><div  style="clear: both;">                                                   Object... constants)</div><div  style="clear: both;">        throws StringConcatException</div><div  style="clear: both;">    {</div><div  style="clear: both;">            MethodHandle mh = makeSimpleConcat(concatType, constantStrings);</div><div  style="clear: both;">            if (mh == null && concatType.parameterCount() <= HIGH_ARITY_THRESHOLD) {</div><div  style="clear: both;">                mh = generateMHInlineCopy(concatType, constantStrings); // no longer used by default.</div><div  style="clear: both;">            }</div><div  style="clear: both;">    }</div><div ><span >}</span></div><div ><span >```</span></div></div><div  style="clear: both;"><br ></div><div  style="clear: both;"><span >After a year of community use, the InlineHiddenClassStrategy has proven to work well, so I recommend removing the implementation of StringConcatFactory#generateMHInlineCopy.</span></div><div  style="clear: both;"><span ><br ></span></div><div  style="clear: both;"><span >-</span></div><div  style="clear: both;"><span >Shaojin Wen</span></div><div  style="clear: both;"><span ><br ></span></div></div></div>