Integrated: 8293547: Add relaxed add_and_fetch for macos aarch64 atomics

Stefan Karlsson stefank at openjdk.org
Mon May 8 07:57:28 UTC 2023


On Fri, 5 May 2023 05:57:37 GMT, Stefan Karlsson <stefank at openjdk.org> wrote:

> Atomic::add_and_fetch currently doesn't honor the relaxed memory order hint. I suggest that we change the code to do so. We initially found this issue when looking into why one of our parallel iterators were slower than expected. We have been using this for a while in the Generational ZGC repository.

This pull request has now been integrated.

Changeset: 7a1cb64b
Author:    Stefan Karlsson <stefank at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/7a1cb64bc1b85b3ef1b0ba2d84dbc5b8b05c60ff
Stats:     7 lines in 1 file changed: 4 ins; 0 del; 3 mod

8293547: Add relaxed add_and_fetch for macos aarch64 atomics

Reviewed-by: dholmes, eosterlund

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

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


More information about the hotspot-runtime-dev mailing list