src/hotspot/share/runtime/thread.cpp
changeset 54015 cd701366fcf8
parent 54006 a421bdf22394
child 54150 5529640c5f67
equal deleted inserted replaced
54014:083d7a34bbfd 54015:cd701366fcf8
  4771 
  4771 
  4772   st->print_cr("Threads with active compile tasks:");
  4772   st->print_cr("Threads with active compile tasks:");
  4773   print_threads_compiling(st, buf, buflen);
  4773   print_threads_compiling(st, buf, buflen);
  4774 }
  4774 }
  4775 
  4775 
  4776 void Threads::print_threads_compiling(outputStream* st, char* buf, int buflen) {
  4776 void Threads::print_threads_compiling(outputStream* st, char* buf, int buflen, bool short_form) {
  4777   ALL_JAVA_THREADS(thread) {
  4777   ALL_JAVA_THREADS(thread) {
  4778     if (thread->is_Compiler_thread()) {
  4778     if (thread->is_Compiler_thread()) {
  4779       CompilerThread* ct = (CompilerThread*) thread;
  4779       CompilerThread* ct = (CompilerThread*) thread;
  4780 
  4780 
  4781       // Keep task in local variable for NULL check.
  4781       // Keep task in local variable for NULL check.
  4784       // though, just returned to a free list.
  4784       // though, just returned to a free list.
  4785       CompileTask* task = ct->task();
  4785       CompileTask* task = ct->task();
  4786       if (task != NULL) {
  4786       if (task != NULL) {
  4787         thread->print_name_on_error(st, buf, buflen);
  4787         thread->print_name_on_error(st, buf, buflen);
  4788         st->print("  ");
  4788         st->print("  ");
  4789         task->print(st, NULL, true, true);
  4789         task->print(st, NULL, short_form, true);
  4790       }
  4790       }
  4791     }
  4791     }
  4792   }
  4792   }
  4793 }
  4793 }
  4794 
  4794