RFR: 8293922: Extend barrier-less Java thread transitions to native transitions [v2]

Daniel D. Daugherty dcubed at openjdk.org
Sat Sep 17 15:33:56 UTC 2022


On Fri, 16 Sep 2022 12:24:45 GMT, Robbin Ehn <rehn at openjdk.org> wrote:

>> As suggested by @TheRealMDoerr, avoid the fence for native trans when UseSystemMemoryBarrier is enabled.
>> 
>> Locally I can see methods like Thread.holdsLock() getting a 4 ns speed boost, (~20% faster).
>> 
>> Running t1-5 with UseSystemMemoryBarrier on.
>
> Robbin Ehn has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Use proper accessors for _thread_state

Thumbs up.

I do have to wonder why we had those casts that you removed.

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

Marked as reviewed by dcubed (Reviewer).

PR: https://git.openjdk.org/jdk/pull/10302


More information about the hotspot-runtime-dev mailing list