RFR: 8275718: Relax memory constraint on exception counter updates

David Holmes dholmes at openjdk.java.net
Mon Oct 25 00:26:02 UTC 2021


On Thu, 21 Oct 2021 15:16:28 GMT, Zhengyu Gu <zgu at openjdk.org> wrote:

> This is another instance of counter updates that only need atomic guarantee.

What does this achieve? These are not "hot" counters so performance is of zero concern. The conservative memory ordering doesn't guarantee cross-thread visibility but it does seem to me there is less likelihood of error reporting seeing a stale value from another thread if we have "conservative" memory ordering (which traditionally should have been a full bi-directional fence for atomic r-m-w operations).

David

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

PR: https://git.openjdk.java.net/jdk/pull/6065


More information about the hotspot-dev mailing list