A simple optimization that eliminates the allocation of the MethodTypeDescImpl object when parameterCount is equal to 0 and eliminates the allocation of argNames when parameterCount is equal to 1
------------- Commit messages: - Use global cache, don't need per-instance array - Merge remote-tracking branch 'upstream/master' into optim_inner_class_lamba_meta_factory_202410 - suggestion from @liach - optimize InnerClassLambdaMetafactory init Changes: https://git.openjdk.org/jdk/pull/21399/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=21399&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8341755 Stats: 39 lines in 1 file changed: 23 ins; 8 del; 8 mod Patch: https://git.openjdk.org/jdk/pull/21399.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/21399/head:pull/21399 PR: https://git.openjdk.org/jdk/pull/21399