RFR: 8277180: Intrinsify recursive ObjectMonitor locking for C2 x64 and A64 [v3]
Erik Österlund
eosterlund at openjdk.java.net
Wed Nov 17 11:19:14 UTC 2021
On Wed, 17 Nov 2021 10:46:08 GMT, Andrew Haley <aph at openjdk.org> wrote:
>> The increment macro doesn't seem to utilize the fact that 1u can be encoded as an immediate to the add instruction. So it seems to generate worse code here. I'm okay with changing to increment anyway if you prefer that.
>
>> The increment macro doesn't seem to utilize the fact that 1u can be encoded as an immediate to the add instruction.
>
> Sure it does. Try it. If it doesn't, we'll change `increment()`!
Oh yeah look at that. I disassembled it and it did the right thing. Thanks for the suggestion.
-------------
PR: https://git.openjdk.java.net/jdk/pull/6406
More information about the hotspot-compiler-dev
mailing list