Integrated: 8293922: Extend barrier-less Java thread transitions to native transitions

Robbin Ehn rehn at openjdk.org
Tue Sep 20 08:44:56 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.

This pull request has now been integrated.

Changeset: 1b496064
Author:    Robbin Ehn <rehn at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/1b496064bf1c5078b6f753282771996e0d1b94d6
Stats:     10 lines in 2 files changed: 5 ins; 0 del; 5 mod

8293922: Extend barrier-less Java thread transitions to native transitions

Reviewed-by: mdoerr, pchilanomate, dcubed

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

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


More information about the hotspot-runtime-dev mailing list