RFR: 8339217: Optimize ClassFile API loadConstant [v3]

Chen Liang liach at openjdk.org
Thu Aug 29 21:29:30 UTC 2024


On Thu, 29 Aug 2024 21:22:34 GMT, Shaojin Wen <swen at 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
>
> Shaojin Wen has updated the pull request incrementally with one additional commit since the last revision:
> 
>   comments

I have updated the CSR with your latest specs.

-------------

PR Comment: https://git.openjdk.org/jdk/pull/20761#issuecomment-2319035051


More information about the core-libs-dev mailing list