This is a large method. By splitting it into multiple methods with the same name, the caller can automatically select based on the different types of parameters, avoiding this large call that cannot be inlined, which can also improve startup performance.
* current CodeBuilder { default CodeBuilder loadConstant(ConstantDesc value) { ... } } java.lang.classfile.CodeBuilder::loadConstant (465 bytes) failed to inline: callee is too large ------------- Commit messages: - since 24 - optimize loadConstant Changes: https://git.openjdk.org/jdk/pull/20761/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=20761&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8339217 Stats: 67 lines in 2 files changed: 36 ins; 0 del; 31 mod Patch: https://git.openjdk.org/jdk/pull/20761.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/20761/head:pull/20761 PR: https://git.openjdk.org/jdk/pull/20761