RFR: 8294759: Print actual lock/monitor ranking [v3]
Coleen Phillimore
coleenp at openjdk.org
Wed Oct 5 17:47:10 UTC 2022
On Wed, 5 Oct 2022 15:59:09 GMT, Aleksey Shipilev <shade at openjdk.org> wrote:
>> src/hotspot/share/runtime/mutexLocker.cpp line 427:
>>
>>> 425:
>>> 426: void print_lock_ranks(outputStream* st) {
>>> 427: st->print_cr("VM Mutex/Monitor ranks: ");
>>
>> Do we want to clarify this is not the complete set of Mutexes in the VM?
>
> hs_err does not clarify this in the similar printout ("VM Mutex/Monitor currently owned by a thread: " in the method above), so it seems to be implied these are only the known mutexes. So, I left it as is.
it's a lot harder to get the full set of mutexes, which is unfortunate, but this is good.
-------------
PR: https://git.openjdk.org/jdk/pull/10556
More information about the hotspot-runtime-dev
mailing list