RFR: 8316694: Implement relocation of nmethod within CodeCache [v13]

Chad Rakoczy duke at openjdk.org
Thu Jul 24 18:56:07 UTC 2025


On Mon, 28 Apr 2025 19:28:33 GMT, Chad Rakoczy <duke at openjdk.org> wrote:

>> src/hotspot/share/code/relocInfo.cpp line 379:
>> 
>>> 377:   } else {
>>> 378:     // Reassert the callee address, this time in the new copy of the code.
>>> 379:     pd_set_call_destination(callee);
>> 
>> if (src->contains(callee)) {
>>     // ...
>>     int offset = pointer_delta_as_int(callee, orig_addr);
>>     callee = addr() + offset;
>>  }
>>  pd_set_call_destination(callee);
>
> I'll use this refactor to remove the else but can't use `pointer_delta_as_int` as it only works for positive offsets

This change is no longer needed. Trampolines are responsible for fixing their owners

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

PR Review Comment: https://git.openjdk.org/jdk/pull/23573#discussion_r2229311317


More information about the hotspot-compiler-dev mailing list