RFR: JDK-8305387: JDK-8301995 breaks arm 32-bit [v2]
Aleksei Voitylov
avoitylov at openjdk.org
Mon Apr 24 18:09:51 UTC 2023
On Mon, 24 Apr 2023 15:36:42 GMT, Aleksey Shipilev <shade at openjdk.org> wrote:
>> Aleksei Voitylov has updated the pull request incrementally with one additional commit since the last revision:
>>
>> address review comments
>
> src/hotspot/cpu/arm/templateTable_arm.cpp line 2613:
>
>> 2611: // The rmethod register is input and overwritten to be the adapter method for the
>> 2612: // indy call. Link Register (lr) is set to the return address for the adapter and
>> 2613: // an appendix may be pushed to the stack. Registers r0-r3 are clobbered
>
> "Registers r0-r3 are clobbered". This is a copy-paste error, it seems. Which registers this method really clobbers? R1..R3?
Fixed comment, thanks!
> src/hotspot/cpu/arm/templateTable_arm.cpp line 2641:
>
>> 2639: // Load-acquire the adapter method to match store-release in ResolvedIndyEntry::fill_in()
>> 2640: __ ldr(method, Address(cache, in_bytes(ResolvedIndyEntry::method_offset())));
>> 2641: TemplateTable::volatile_barrier(MacroAssembler::Membar_mask_bits(MacroAssembler::LoadLoad | MacroAssembler::LoadStore), noreg, true);
>
> Why calling `TemplateTable::volatile_barrier`, if you can do `__ membar(...)`?
Well, volatile_barrier is essentially a shell around membar, so here I'm just following the style of the code around.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/13596#discussion_r1175611079
PR Review Comment: https://git.openjdk.org/jdk/pull/13596#discussion_r1175615855
More information about the hotspot-dev
mailing list