On Thu, 29 Aug 2024 05:01:52 GMT, Shaojin Wen <s...@openjdk.org> wrote:
> 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 This pull request has now been integrated. Changeset: 2461263a Author: Shaojin Wen <s...@openjdk.org> URL: https://git.openjdk.org/jdk/commit/2461263aac35b25e2a48b6fc84da49e4b553dbc3 Stats: 90 lines in 2 files changed: 63 ins; 22 del; 5 mod 8339217: Optimize ClassFile API loadConstant Reviewed-by: liach, redestad, asotona ------------- PR: https://git.openjdk.org/jdk/pull/20761