Skip to content
Snippets Groups Projects
Commit 090bd3af authored by Daniel D. Daugherty's avatar Daniel D. Daugherty
Browse files

8259397: ThreadsSMRSupport::print_info_on() should use try_lock_without_rank_check()

Reviewed-by: coleenp, dholmes
parent 10a6b0d9
No related branches found
No related tags found
No related merge requests found
......@@ -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.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment