RFR: 8318757: VM_ThreadDump asserts in interleaved ObjectMonitor::deflate_monitor calls [v5]
Stefan Karlsson
stefank at openjdk.org
Fri Nov 10 07:51:02 UTC 2023
On Fri, 10 Nov 2023 02:34:48 GMT, David Holmes <dholmes at openjdk.org> wrote:
>> Owned by *any* thread in any way.
>>
>> * `owned_monitors_iterate(MonitorClosure* closure)` - Visits all monitors with the owner set to anything that indicates that the monitor has an owner (`ObjectMonitor::has_owner()`).
>>
>> * `owned_monitors_iterate(MonitorClosure* m, JavaThread* thread)` - Visits all monitors with the owner field set to the specified `thread`.
>>
>> Maybe we could figure out more descriptive names for these.
>
> Updating the comment would be fine:
>
> // Iterate ObjectMonitors owned by any thread.
>
> Thanks
Done
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/16519#discussion_r1389029900
More information about the hotspot-dev
mailing list