RFR: 8374513: AArch64: Improve receiver type profiling reliability

Aleksey Shipilev shade at openjdk.org
Tue Jan 20 10:14:33 UTC 2026


On Tue, 20 Jan 2026 09:49:13 GMT, Andrew Haley <aph at openjdk.org> wrote:

>> src/hotspot/cpu/aarch64/macroAssembler_aarch64.cpp line 2275:
>> 
>>> 2273:   ldr(rscratch2, Address(mdp, offset));
>>> 2274:   add(rscratch2, rscratch2, DataLayout::counter_increment);
>>> 2275:   str(rscratch2, Address(mdp, offset));
>> 
>> Suggestion:
>> 
>>   increment(Address(mdp, offset), DataLayout::counter_increment);
>
> ... then we're good to go.

Oh, there is `increment`, nice. There is another counter-update shortcut near `// Corner case: no profile table. Increment poly counter and exit.`, update that one too.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/29283#discussion_r2707657832


More information about the hotspot-dev mailing list