RFR: 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:39 UTC 2021
On Thu, 18 Feb 2021 03:44:27 GMT, David Holmes <dholmes 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
>
> Hi Zhengyu,
>
> This seems okay.
>
> Thanks,
> David
Thanks for reviewing, @dholmes-ora and @shipilev
-------------
PR: https://git.openjdk.java.net/jdk/pull/2527
More information about the hotspot-runtime-dev
mailing list