RFR: 8293922: Extend barrier-less Java thread transitions to native transitions
Robbin Ehn
rehn at openjdk.org
Fri Sep 16 12:24:46 UTC 2022
On Fri, 16 Sep 2022 10:01:18 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.
Thanks, great.
But since you bring it up. We should use correct accessors for _thread_state.
Fixed that, please have a second look @TheRealMDoerr.
-------------
PR: https://git.openjdk.org/jdk/pull/10302
More information about the hotspot-runtime-dev
mailing list