src/hotspot/share/compiler/compileBroker.cpp
changeset 58189 2f301425af62
parent 58177 4932dce35882
child 58545 725244418646
equal deleted inserted replaced
58186:8ee083465318 58189:2f301425af62
   555   }
   555   }
   556   st->cr();
   556   st->cr();
   557 }
   557 }
   558 
   558 
   559 void CompileQueue::print_tty() {
   559 void CompileQueue::print_tty() {
   560   ttyLocker ttyl;
   560   ResourceMark rm;
   561   print(tty);
   561   stringStream ss;
       
   562   // Dump the compile queue into a buffer before locking the tty
       
   563   print(&ss);
       
   564   {
       
   565     ttyLocker ttyl;
       
   566     tty->print("%s", ss.as_string());
       
   567   }
   562 }
   568 }
   563 
   569 
   564 CompilerCounters::CompilerCounters() {
   570 CompilerCounters::CompilerCounters() {
   565   _current_method[0] = '\0';
   571   _current_method[0] = '\0';
   566   _compile_type = CompileBroker::no_compile;
   572   _compile_type = CompileBroker::no_compile;