RFR: 8308469: [PPC64] Implement alternative fast-locking scheme [v2]

Richard Reingruber rrich at openjdk.org
Fri May 26 10:53:57 UTC 2023


On Fri, 26 May 2023 10:40:12 GMT, Martin Doerr <mdoerr at openjdk.org> wrote:

>> Correct that's what I meant. I was just not sure if there is a reason not to do that but have a dedicated C2HandleAnonOMOwnerStub to handle that case.
>
> I think we don't even need to check the `ANONYMOUS_OWNER` bit because that case is also handled by
> 
>   cmpd(flag, temp, R16_thread);
>   bne(flag, failure);
> 
> If `temp` has the `ANONYMOUS_OWNER` set it's unequal to the current thread and we jump to failure with CR0 NE.

You are right.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/14069#discussion_r1206591626


More information about the hotspot-dev mailing list