RFR: 8276663: Cleanup NMT AccessLock [v2]

Zhengyu Gu zgu at openjdk.java.net
Fri Nov 5 13:27:14 UTC 2021


On Fri, 5 Nov 2021 03:48:36 GMT, David Holmes <dholmes at openjdk.org> wrote:

> Hi Zhengyu,
> 
> I do not understand this change. The "counter" is what makes the lock acts as a lock. Locks generally require acquire/release semantics wrt. to the locking and unlocking around a critical section. So how can you switch to use mo_relaxed?
> 
> David

Right, I am embarrassed. This is a lock, does have memory semantics.

Thanks,

-Zhengyu

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

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


More information about the hotspot-runtime-dev mailing list