RFR: 8341755: Optimize argNames in InnerClassLambdaMetafactory [v4]

Shaojin Wen swen at openjdk.org
Tue Oct 8 22:14:29 UTC 2024


> 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

Shaojin Wen has updated the pull request with a new target base due to a merge or a rebase. The pull request now contains seven commits:

 - Merge branch 'master' into optim_inner_class_lamba_meta_factory_202410
 - Update src/java.base/share/classes/java/lang/invoke/InnerClassLambdaMetafactory.java
   
   Co-authored-by: Claes Redestad <claes.redestad at oracle.com>
 - Lazy initialization of ARG_NAME_CACHE
 - 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=03
  Stats: 33 lines in 1 file changed: 18 ins; 8 del; 7 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


More information about the core-libs-dev mailing list