Skip to content

Commit

Permalink
8259397: ThreadsSMRSupport::print_info_on() should use try_lock_witho…
Browse files Browse the repository at this point in the history
…ut_rank_check()

Reviewed-by: coleenp, dholmes
  • Loading branch information
Daniel D. Daugherty committed Jan 8, 2021
1 parent 10a6b0d commit 090bd3a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hotspot/share/runtime/threadSMR.cpp
Expand Up @@ -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.
Expand Down

1 comment on commit 090bd3a

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.