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

Zhengyu Gu zgu at openjdk.java.net
Thu Feb 18 13:33:41 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 pull request has now been integrated.

Changeset: f94a8452
Author:    Zhengyu Gu <zgu at openjdk.org>
URL:       https://git.openjdk.java.net/jdk/commit/f94a8452
Stats:     55 lines in 2 files changed: 36 ins; 2 del; 17 mod

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

Reviewed-by: dholmes, shade

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

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


More information about the hotspot-runtime-dev mailing list