On Wed, 18 Nov 2026 18:41:11 GMT, Vladimir Kozlov <[email protected]> wrote:

>> src/hotspot/cpu/x86/macroAssembler_x86.cpp line 6027:
>> 
>>> 6025:   if (vk != nullptr) {
>>> 6026:     // Called from C1, where the return type is statically known.
>>> 6027:     mov_metadata(rbx, vk->constant_encoding());
>> 
>> Hold on, this is not equivalent change, or am I missing something?
>
> It only adds Metadata relocation for loading classes as we should do when we 
> load metadata.  For example: 
> [c2_MacroAssembler_x86.cpp#L65](https://github.com/openjdk/jdk/blob/master/src/hotspot/cpu/x86/c2_MacroAssembler_x86.cpp#L65)
> 
> When I merged Valhalla changes into AOT code JEP PR I decided to play safe 
> and leave it. But now after more testing I think we can do that.
> 
> Actually there is similar code in C1 
> `LIRGenerator::increment_event_counter_impl` which I can also adjust.
> 
> @shipilev if you completely agains it I can take it out from this change and 
> do in separate PR.

There is another place in C2 `ValueTypeNode::tagged_klass()`.  May be I should 
do it in a separate RFE indeed.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/33951#discussion_r4619195809

Reply via email to