changeset 15494:e20a45d17181

Move CIPrintCompilerName handling into CompileTask::print_compilation_impl
author Gilles Duboscq <duboscq@ssw.jku.at>
date Wed, 30 Apr 2014 11:48:13 +0200
parents 49a917f9fa07
children 9c66a589ef63
files src/share/vm/code/nmethod.cpp src/share/vm/compiler/compileBroker.cpp
diffstat 2 files changed, 2 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/vm/code/nmethod.cpp	Sun May 04 16:12:44 2014 +0200
+++ b/src/share/vm/code/nmethod.cpp	Wed Apr 30 11:48:13 2014 +0200
@@ -1064,7 +1064,6 @@
 void nmethod::print_on(outputStream* st, const char* msg) const {
   if (st != NULL) {
     ttyLocker ttyl;
-    if (CIPrintCompilerName) st->print("%s:", compiler()->name());
     if (WizardMode) {
       CompileTask::print_compilation(st, this, msg, /*short_form:*/ true);
       st->print_cr(" (" INTPTR_FORMAT ")", this);
--- a/src/share/vm/compiler/compileBroker.cpp	Sun May 04 16:12:44 2014 +0200
+++ b/src/share/vm/compiler/compileBroker.cpp	Wed Apr 30 11:48:13 2014 +0200
@@ -370,8 +370,6 @@
 // CompileTask::print_line
 void CompileTask::print_line() {
   ttyLocker ttyl;  // keep the following output all in one block
-  // print compiler name if requested
-  if (CIPrintCompilerName) tty->print("%s:", CompileBroker::compiler_name(comp_level()));
   print_compilation();
 }
 
@@ -384,6 +382,8 @@
   if (!short_form) {
     st->print("%7d ", (int) st->time_stamp().milliseconds());  // print timestamp
   }
+  // print compiler name if requested
+  if (CIPrintCompilerName) tty->print("%s:", CompileBroker::compiler_name(comp_level));
   st->print("%4d ", compile_id);    // print compilation number
 
   // For unloaded methods the transition to zombie occurs after the