On Sun, 25 Aug 2024 11:50:27 GMT, Shaojin Wen <d...@openjdk.org> wrote:
> optimize the construction of MethodType and MethodTypeDesc to reduce memory > allocate Marked as reviewed by redestad (Reviewer). src/java.base/share/classes/java/lang/invoke/StringConcatFactory.java line 1200: > 1198: /** > 1199: * Construct the MethodType of the coder method, if there are > no parameters it may be UTF16, return null. > 1200: * The first parameter is the initialized coder, Only parameter > types that can be UTF16 are added. Suggestion: * 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. ------------- PR Review: https://git.openjdk.org/jdk/pull/20704#pullrequestreview-2259238024 PR Review Comment: https://git.openjdk.org/jdk/pull/20704#discussion_r1730327504