RFR: 8320318: ObjectMonitor Responsible thread

Coleen Phillimore coleenp at openjdk.org
Wed Sep 11 12:29:06 UTC 2024


On Wed, 11 Sep 2024 12:17:01 GMT, Fredrik Bredberg <fbredberg at openjdk.org> wrote:

>> src/hotspot/share/runtime/objectMonitor.cpp line 1104:
>> 
>>> 1102: //   1. A release barrier ensures that changes to monitor meta-data
>>> 1103: //      (_succ, _EntryList, _cxq) and data protected by the lock will be
>>> 1104: //      visible before we release the lock.
>> 
>> Where is this barrier?
>
> [release_clear_owner(current);](https://github.com/openjdk/jdk/blob/f9ddfc6fb0780a7d6e933a40ecd3cd458a058f04/src/hotspot/share/runtime/objectMonitor.cpp#L1183)

Ok, I see.  It's release_store_owner which is step 1 and 2, then membar which is step 3.  Ok, it does say that.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/19454#discussion_r1754332975


More information about the hotspot-dev mailing list