Skip to content

Commit 090bd3a

Browse files
author
Daniel D. Daugherty
committed
8259397: ThreadsSMRSupport::print_info_on() should use try_lock_without_rank_check()
Reviewed-by: coleenp, dholmes
1 parent 10a6b0d commit 090bd3a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/hotspot/share/runtime/threadSMR.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1121,7 +1121,7 @@ void ThreadsSMRSupport::print_info_on(const Thread* thread, outputStream* st) {
11211121
// Print Threads class SMR info.
11221122
void ThreadsSMRSupport::print_info_on(outputStream* st) {
11231123
bool needs_unlock = false;
1124-
if (Threads_lock->try_lock()) {
1124+
if (Threads_lock->try_lock_without_rank_check()) {
11251125
// We were able to grab the Threads_lock which makes things safe for
11261126
// this call, but if we are error reporting, then a nested error
11271127
// could happen with the Threads_lock held.

0 commit comments

Comments
 (0)