< prev index next >

src/share/vm/compiler/compileBroker.cpp

Print this page




1748     event.set_compileId(task->compile_id());
1749     event.set_compileLevel(task->comp_level());
1750     event.set_succeded(task->is_success());
1751     event.set_isOsr(task->osr_bci() != CompileBroker::standard_entry_bci);
1752     event.set_codeSize((task->code() == NULL) ? 0 : task->code()->total_size());
1753     event.set_inlinedBytes(task->num_inlined_bytecodes());
1754     event.commit();
1755   }
1756 }
1757 
1758 int DirectivesStack::_depth = 0;
1759 CompilerDirectives* DirectivesStack::_top = NULL;
1760 CompilerDirectives* DirectivesStack::_bottom = NULL;
1761 
1762 // ------------------------------------------------------------------
1763 // CompileBroker::invoke_compiler_on_method
1764 //
1765 // Compile a method.
1766 //
1767 void CompileBroker::invoke_compiler_on_method(CompileTask* task) {

1768   if (PrintCompilation) {
1769     ResourceMark rm;
1770     task->print_tty();
1771   }
1772   elapsedTimer time;
1773 
1774   CompilerThread* thread = CompilerThread::current();
1775   ResourceMark rm(thread);
1776 
1777   if (LogEvents) {
1778     _compilation_log->log_compile(thread, task);
1779   }
1780 
1781   // Common flags.
1782   uint compile_id = task->compile_id();
1783   int osr_bci = task->osr_bci();
1784   bool is_osr = (osr_bci != standard_entry_bci);
1785   bool should_log = (thread->log() != NULL);
1786   bool should_break = false;
1787   const int task_level = task->comp_level();




1748     event.set_compileId(task->compile_id());
1749     event.set_compileLevel(task->comp_level());
1750     event.set_succeded(task->is_success());
1751     event.set_isOsr(task->osr_bci() != CompileBroker::standard_entry_bci);
1752     event.set_codeSize((task->code() == NULL) ? 0 : task->code()->total_size());
1753     event.set_inlinedBytes(task->num_inlined_bytecodes());
1754     event.commit();
1755   }
1756 }
1757 
1758 int DirectivesStack::_depth = 0;
1759 CompilerDirectives* DirectivesStack::_top = NULL;
1760 CompilerDirectives* DirectivesStack::_bottom = NULL;
1761 
1762 // ------------------------------------------------------------------
1763 // CompileBroker::invoke_compiler_on_method
1764 //
1765 // Compile a method.
1766 //
1767 void CompileBroker::invoke_compiler_on_method(CompileTask* task) {
1768   task->print_ul();
1769   if (PrintCompilation) {
1770     ResourceMark rm;
1771     task->print_tty();
1772   }
1773   elapsedTimer time;
1774 
1775   CompilerThread* thread = CompilerThread::current();
1776   ResourceMark rm(thread);
1777 
1778   if (LogEvents) {
1779     _compilation_log->log_compile(thread, task);
1780   }
1781 
1782   // Common flags.
1783   uint compile_id = task->compile_id();
1784   int osr_bci = task->osr_bci();
1785   bool is_osr = (osr_bci != standard_entry_bci);
1786   bool should_log = (thread->log() != NULL);
1787   bool should_break = false;
1788   const int task_level = task->comp_level();


< prev index next >