Integrated: 8324186: Use "dmb.ishst+dmb.ishld" for release barrier

kuaiwei duke at openjdk.org
Mon Jan 29 09:36:48 UTC 2024


On Mon, 22 Jan 2024 01:58:32 GMT, kuaiwei <duke at openjdk.org> wrote:

> Details is https://mail.openjdk.org/pipermail/hotspot-compiler-dev/2024-January/071921.html.
> Using a combined dmb.ish for release barrier will introduce a heavy storeload barrier. Use "dmb.ishst+dmb.ishld" pair instead, we can gain performance improvement on N1 and N2 architecture. The benchmark is test/micro/org/openjdk/bench/vm/compiler/FinalFieldInitialize.java
> Run with ParallelGC to minimalize impact of gc barrier.
> 
> make test TEST="micro:org.openjdk.bench.vm.compiler.FinalFieldInitialize" MICRO="VM_OPTIONS=-XX:+UseParallelGC"
> ...
> FinalFieldInitialize.testAllocWithFinal  thrpt    9  1411.601 ?  6.546  ops/s
> 
> Without the patch
> 
> FinalFieldInitialize.testAllocWithFinal  thrpt    9  1214.575 ? 14.217  ops/s

This pull request has now been integrated.

Changeset: 628348d3
Author:    Kuai Wei <kuaiwei.kw at alibaba-inc.com>
Committer: Andrew Haley <aph at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/628348d3e97b669ab4136b1749b8fccf373eb2a0
Stats:     108 lines in 5 files changed: 98 ins; 0 del; 10 mod

8324186: Use "dmb.ishst+dmb.ishld" for release barrier

Reviewed-by: fyang, aph

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

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


More information about the hotspot-dev mailing list