src/share/vm/compiler/compileBroker.cpp
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File 7145537 Sdiff src/share/vm/compiler

src/share/vm/compiler/compileBroker.cpp

Print this page




 187 CompileQueue* CompileBroker::_c1_method_queue   = NULL;
 188 CompileTask*  CompileBroker::_task_free_list = NULL;
 189 
 190 GrowableArray<CompilerThread*>* CompileBroker::_method_threads = NULL;
 191 
 192 
 193 class CompilationLog : public StringEventLog {
 194  public:
 195   CompilationLog() : StringEventLog("Compilation events") {
 196   }
 197 
 198   void log_compile(JavaThread* thread, CompileTask* task) {
 199     StringLogMessage lm;
 200     stringStream msg = lm.stream();
 201     // msg.time_stamp().update_to(tty->time_stamp().ticks());
 202     task->print_compilation(&msg, true);
 203     log(thread, "%s", (const char*)lm);
 204   }
 205 
 206   void log_nmethod(JavaThread* thread, nmethod* nm) {
 207     log(thread, "nmethod " INTPTR_FORMAT " code ["INTPTR_FORMAT ", " INTPTR_FORMAT "]",

 208         nm, nm->code_begin(), nm->code_end());
 209   }
 210 
 211   void log_failure(JavaThread* thread, CompileTask* task, const char* reason, const char* retry_message) {
 212     StringLogMessage lm;
 213     lm.print("%4d   COMPILE SKIPPED: %s", task->compile_id(), reason);
 214     if (retry_message != NULL) {
 215       lm.append(" (%s)", retry_message);
 216     }
 217     lm.print("\n");
 218     log(thread, "%s", (const char*)lm);
 219   }
 220 };
 221 
 222 static CompilationLog* _compilation_log = NULL;
 223 
 224 void compileBroker_init() {
 225   if (LogEvents) {
 226     _compilation_log = new CompilationLog();
 227   }




 187 CompileQueue* CompileBroker::_c1_method_queue   = NULL;
 188 CompileTask*  CompileBroker::_task_free_list = NULL;
 189 
 190 GrowableArray<CompilerThread*>* CompileBroker::_method_threads = NULL;
 191 
 192 
 193 class CompilationLog : public StringEventLog {
 194  public:
 195   CompilationLog() : StringEventLog("Compilation events") {
 196   }
 197 
 198   void log_compile(JavaThread* thread, CompileTask* task) {
 199     StringLogMessage lm;
 200     stringStream msg = lm.stream();
 201     // msg.time_stamp().update_to(tty->time_stamp().ticks());
 202     task->print_compilation(&msg, true);
 203     log(thread, "%s", (const char*)lm);
 204   }
 205 
 206   void log_nmethod(JavaThread* thread, nmethod* nm) {
 207     log(thread, "nmethod %d%s " INTPTR_FORMAT " code ["INTPTR_FORMAT ", " INTPTR_FORMAT "]",
 208         nm->compile_id(), nm->is_osr_method() ? "%" : "",
 209         nm, nm->code_begin(), nm->code_end());
 210   }
 211 
 212   void log_failure(JavaThread* thread, CompileTask* task, const char* reason, const char* retry_message) {
 213     StringLogMessage lm;
 214     lm.print("%4d   COMPILE SKIPPED: %s", task->compile_id(), reason);
 215     if (retry_message != NULL) {
 216       lm.append(" (%s)", retry_message);
 217     }
 218     lm.print("\n");
 219     log(thread, "%s", (const char*)lm);
 220   }
 221 };
 222 
 223 static CompilationLog* _compilation_log = NULL;
 224 
 225 void compileBroker_init() {
 226   if (LogEvents) {
 227     _compilation_log = new CompilationLog();
 228   }


src/share/vm/compiler/compileBroker.cpp
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File