comparison 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
comparison
equal deleted inserted replaced
113:abf2287a904c 114:6ae7b92ff4fa
499 void CompileTask::log_task(xmlStream* log) { 499 void CompileTask::log_task(xmlStream* log) {
500 Thread* thread = Thread::current(); 500 Thread* thread = Thread::current();
501 methodHandle method(thread, this->method()); 501 methodHandle method(thread, this->method());
502 ResourceMark rm(thread); 502 ResourceMark rm(thread);
503 503
504 // <task id='9' method='M' osr_bci='X' level='1' blocking='1' stamp='1.234'> 504 // <task compiler='Cx' id='9' method='M' osr_bci='X' level='1' blocking='1' stamp='1.234'>
505 log->print(" compile_id='%d'", _compile_id); 505 log->print(" compiler='%s' compile_id='%d'", _comp_level <= CompLevel_full_profile ? "C1" : "C2", _compile_id);
506 if (_osr_bci != CompileBroker::standard_entry_bci) { 506 if (_osr_bci != CompileBroker::standard_entry_bci) {
507 log->print(" compile_kind='osr'"); // same as nmethod::compile_kind 507 log->print(" compile_kind='osr'"); // same as nmethod::compile_kind
508 } // else compile_kind='c2c' 508 } // else compile_kind='c2c'
509 if (!method.is_null()) log->method(method); 509 if (!method.is_null()) log->method(method);
510 if (_osr_bci != CompileBroker::standard_entry_bci) { 510 if (_osr_bci != CompileBroker::standard_entry_bci) {