src/share/vm/compiler/compileTask.cpp

Print this page




  74  }
  75 }
  76 
  77 
  78 void CompileTask::initialize(int compile_id,
  79                              const methodHandle& method,
  80                              int osr_bci,
  81                              int comp_level,
  82                              const methodHandle& hot_method,
  83                              int hot_count,
  84                              const char* comment,
  85                              bool is_blocking) {
  86   assert(!_lock->is_locked(), "bad locking");
  87 
  88   _compile_id = compile_id;
  89   _method = method();
  90   _method_holder = JNIHandles::make_global(method->method_holder()->klass_holder());
  91   _osr_bci = osr_bci;
  92   _is_blocking = is_blocking;
  93   JVMCI_ONLY(_has_waiter = CompileBroker::compiler(comp_level)->is_jvmci();)

  94   _comp_level = comp_level;
  95   _num_inlined_bytecodes = 0;
  96 
  97   _is_complete = false;
  98   _is_success = false;
  99   _code_handle = NULL;
 100 
 101   _hot_method = NULL;
 102   _hot_method_holder = NULL;
 103   _hot_count = hot_count;
 104   _time_queued = 0;  // tidy
 105   _comment = comment;
 106   _failure_reason = NULL;
 107 
 108   if (LogCompilation) {
 109     _time_queued = os::elapsed_counter();
 110     if (hot_method.not_null()) {
 111       if (hot_method == method) {
 112         _hot_method = _method;
 113       } else {




  74  }
  75 }
  76 
  77 
  78 void CompileTask::initialize(int compile_id,
  79                              const methodHandle& method,
  80                              int osr_bci,
  81                              int comp_level,
  82                              const methodHandle& hot_method,
  83                              int hot_count,
  84                              const char* comment,
  85                              bool is_blocking) {
  86   assert(!_lock->is_locked(), "bad locking");
  87 
  88   _compile_id = compile_id;
  89   _method = method();
  90   _method_holder = JNIHandles::make_global(method->method_holder()->klass_holder());
  91   _osr_bci = osr_bci;
  92   _is_blocking = is_blocking;
  93   JVMCI_ONLY(_has_waiter = CompileBroker::compiler(comp_level)->is_jvmci();)
  94   JVMCI_ONLY(_jvmci_compiler_thread = NULL;)
  95   _comp_level = comp_level;
  96   _num_inlined_bytecodes = 0;
  97 
  98   _is_complete = false;
  99   _is_success = false;
 100   _code_handle = NULL;
 101 
 102   _hot_method = NULL;
 103   _hot_method_holder = NULL;
 104   _hot_count = hot_count;
 105   _time_queued = 0;  // tidy
 106   _comment = comment;
 107   _failure_reason = NULL;
 108 
 109   if (LogCompilation) {
 110     _time_queued = os::elapsed_counter();
 111     if (hot_method.not_null()) {
 112       if (hot_method == method) {
 113         _hot_method = _method;
 114       } else {