Proposal to remove StringConcatFactory#generateMHInlineCopy

2025-09-19 Thread wenshao
With the introduction of 8338930: StringConcatFactory hardCoded string concatenation strategy, the StringConcatFactory#generateMHInlineCopy method is no longer used by default. ```java public final class StringConcatFactory { private static final int HIGH_ARITY_THRESHOLD; static { String highA

Re: Proposal to remove StringConcatFactory#generateMHInlineCopy

2025-09-18 Thread Raffaello Giulietti
+1 On 2025-09-17 03:13, wenshao wrote: With the introduction of 8338930: StringConcatFactory hardCoded string concatenation strategy, the StringConcatFactory#generateMHInlineCopy method is no longer used by default. ...> After a year of community use, the InlineHiddenClassStrategy has proven

Re: Proposal to remove StringConcatFactory#generateMHInlineCopy

2025-09-18 Thread Chen Liang
-dev Subject: Re: Proposal to remove StringConcatFactory#generateMHInlineCopy Hi, I think it was https://bugs.openjdk.org/browse/JDK-8336856 which made the old generateMHInline non-default / opt-in. But yes, I’ve planned proposing a removal of this for JDK 26. If you want to file an RFE and

Re: Proposal to remove StringConcatFactory#generateMHInlineCopy

2025-09-18 Thread Claes Redestad
Hi, I think it was https://bugs.openjdk.org/browse/JDK-8336856 which made the old generateMHInline non-default / opt-in. But yes, I’ve planned proposing a removal of this for JDK 26. If you want to file an RFE and work out a PR I’d be happy to approve, otherwise it’s on my to-do list. Thanks