RFR: 8306687: Relax memory ordering constraints on metaspace atomic counters

Aleksey Shipilev shade at openjdk.org
Mon Apr 24 16:04:43 UTC 2023


On Mon, 24 Apr 2023 13:15:09 GMT, Zhengyu Gu <zgu at openjdk.org> wrote:

> Metaspace atomic counter (`SizeAtomicCounter`) is used to track used `class` and `nonclass` metaspace sizes, they are pure counters and only need atomic guarantee.
> 
> Test:
> - [x] hotspot_metaspace MacOSX M1
> - [x] hotspot_metaspace Linux x86_64
> - [x] hotspot_metaspace Linux x86_32

This makes sense to me, thanks!

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

Marked as reviewed by shade (Reviewer).

PR Review: https://git.openjdk.org/jdk/pull/13618#pullrequestreview-1398359696


More information about the hotspot-runtime-dev mailing list