RFR: 8370377: Avoid resolving constant pool entries during preimage generation in the training run

Ashutosh Mehra asmehra at openjdk.org
Wed Oct 22 16:23:58 UTC 2025


On Wed, 22 Oct 2025 16:15:05 GMT, Ashutosh Mehra <asmehra at openjdk.org> wrote:

>> src/hotspot/share/cds/aotConstantPoolResolver.cpp line 225:
>> 
>>> 223:     while (!bcs.is_last_bytecode()) {
>>> 224:       bcs.next();
>>> 225:       Bytecodes::Code raw_bc = bcs.raw_code();
>> 
>> Maybe we can avoid listing all the `_nofast` and `_fast` bytecodes with 
>> 
>> 
>> Bytecodes::Code raw = bcs.code();
>
> Yes, this is better.

But there is also "invokehandle" which is not a Java bytecode, and it needs to be handled separately. So I guess can't use bcs.code() here.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/27927#discussion_r2452644990


More information about the hotspot-dev mailing list