< prev index next >

src/hotspot/share/utilities/vmError.cpp

Print this page
*** 944,10 ***
--- 944,18 ---
           }
         }
         st->cr();
       }
  
+   STEP("printing lock stack")
+ 
+     if (_verbose && _thread != nullptr && _thread->is_Java_thread() && LockingMode == LM_LIGHTWEIGHT) {
+       st->print_cr("Lock stack of current Java thread (top to bottom):");
+       _thread->as_Java_thread()->lock_stack().print_on(st);
+       st->cr();
+     }
+ 
    STEP("printing code blobs if possible")
  
       if (_verbose) {
         const int printed_capacity = max_error_log_print_code;
         address printed[printed_capacity];
< prev index next >