Integrated: 8337815: Relax G1EvacStats atomic operations

Ben Taylor btaylor at openjdk.org
Mon Aug 12 17:29:34 UTC 2024


On Fri, 9 Aug 2024 17:46:43 GMT, Ben Taylor <btaylor at openjdk.org> wrote:

> This PR should slightly improve the performance of G1EvacStats by using `memory_order_relaxed` instead of the default `memory_order_conservative`.
> Since the original bug report says
> 
>>I doubt it would show on benchmarks, this is a paper-cut issue.
> 
> I haven't benchmarked this change for performance.
> 
> The change passes all tests in `gc/g1` locally on x86_64 linux.

This pull request has now been integrated.

Changeset: 2ca136a7
Author:    Ben Taylor <btaylor at openjdk.org>
Committer: Aleksey Shipilev <shade at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/2ca136a7adb6defaea3b7a69d30e6c36bda66e6a
Stats:     7 lines in 1 file changed: 0 ins; 0 del; 7 mod

8337815: Relax G1EvacStats atomic operations

Reviewed-by: kbarrett, tschatzl, shade

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

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


More information about the hotspot-gc-dev mailing list