diff src/share/vm/compiler/compileBroker.cpp @ 8691:0fb7705845de

6900757: minor bug fixes to LogCompilation tool Summary: improve internal error reporting (point to XML element causing trouble); fix comparator for sorting by name and start; make tool more robust wrt. incorrect options and files not found; make inlining decision output more clear; adopt uncommon traps history printing; properly mention compiler in generated logs; add options for printing time stamps and omitting compilation IDs; add option for comparing compilation logs; overall code cleanup and API documentation Reviewed-by: kvn, vlivanov
author mhaupt
date Tue, 31 Mar 2015 21:46:44 +0200
parents 767f36deb0dc
children 8e4dfe7fd5db
line wrap: on
line diff
--- a/src/share/vm/compiler/compileBroker.cpp	Mon Jul 13 13:22:21 2015 -0700
+++ b/src/share/vm/compiler/compileBroker.cpp	Tue Mar 31 21:46:44 2015 +0200
@@ -501,8 +501,8 @@
   methodHandle method(thread, this->method());
   ResourceMark rm(thread);
-  // <task id='9' method='M' osr_bci='X' level='1' blocking='1' stamp='1.234'>
-  log->print(" compile_id='%d'", _compile_id);
+  // <task compiler='Cx' id='9' method='M' osr_bci='X' level='1' blocking='1' stamp='1.234'>
+  log->print(" compiler='%s' compile_id='%d'", _comp_level <= CompLevel_full_profile ? "C1" : "C2", _compile_id);
   if (_osr_bci != CompileBroker::standard_entry_bci) {
     log->print(" compile_kind='osr'");  // same as nmethod::compile_kind
   } // else compile_kind='c2c'