From 090bd3afc37555582bde61d03e2e32350ae5d714 Mon Sep 17 00:00:00 2001 From: "Daniel D. Daugherty" Date: Fri, 8 Jan 2021 15:30:33 +0000 Subject: [PATCH] 8259397: ThreadsSMRSupport::print_info_on() should use try_lock_without_rank_check() Reviewed-by: coleenp, dholmes --- src/hotspot/share/runtime/threadSMR.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hotspot/share/runtime/threadSMR.cpp b/src/hotspot/share/runtime/threadSMR.cpp index d0c9dd0ef3240..a44a2cd6c18d3 100644 --- a/src/hotspot/share/runtime/threadSMR.cpp +++ b/src/hotspot/share/runtime/threadSMR.cpp @@ -1121,7 +1121,7 @@ void ThreadsSMRSupport::print_info_on(const Thread* thread, outputStream* st) { // Print Threads class SMR info. void ThreadsSMRSupport::print_info_on(outputStream* st) { bool needs_unlock = false; - if (Threads_lock->try_lock()) { + if (Threads_lock->try_lock_without_rank_check()) { // We were able to grab the Threads_lock which makes things safe for // this call, but if we are error reporting, then a nested error // could happen with the Threads_lock held.