RFR: 8261600: NMT: Relax memory order for updating MemoryCounter and fix racy updating of peak values

Aleksey Shipilev shade at openjdk.java.net
Thu Feb 18 13:27:40 UTC 2021


On Thu, 11 Feb 2021 15:05:17 GMT, Zhengyu Gu <zgu at openjdk.org> wrote:

> Currently, MemoryCounter is updated with default memory_order_conservative, it is too strong for updating a counter.
> 
> Also, updating peak values with regular assignment, which is racy and broken.
> 
> - [x] hotspot_nmt on Linux x86_64 and aarch64

This looks fine to me too.

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

Marked as reviewed by shade (Reviewer).

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


More information about the hotspot-runtime-dev mailing list