hotspot/src/share/vm/c1/c1_Compilation.cpp
changeset 20702 bbe0fcde6e13
parent 19712 b0bdff06b6fb
child 22234 da823d78ad65
equal deleted inserted replaced
20701:ef9996662fd5 20702:bbe0fcde6e13
   599     if (PrintCompilation || PrintBailouts) tty->print_cr("compilation bailout: %s", msg);
   599     if (PrintCompilation || PrintBailouts) tty->print_cr("compilation bailout: %s", msg);
   600     _bailout_msg = msg;
   600     _bailout_msg = msg;
   601   }
   601   }
   602 }
   602 }
   603 
   603 
       
   604 ciKlass* Compilation::cha_exact_type(ciType* type) {
       
   605   if (type != NULL && type->is_loaded() && type->is_instance_klass()) {
       
   606     ciInstanceKlass* ik = type->as_instance_klass();
       
   607     assert(ik->exact_klass() == NULL, "no cha for final klass");
       
   608     if (DeoptC1 && UseCHA && !(ik->has_subklass() || ik->is_interface())) {
       
   609       dependency_recorder()->assert_leaf_type(ik);
       
   610       return ik;
       
   611     }
       
   612   }
       
   613   return NULL;
       
   614 }
   604 
   615 
   605 void Compilation::print_timers() {
   616 void Compilation::print_timers() {
   606   // tty->print_cr("    Native methods         : %6.3f s, Average : %2.3f", CompileBroker::_t_native_compilation.seconds(), CompileBroker::_t_native_compilation.seconds() / CompileBroker::_total_native_compile_count);
   617   // tty->print_cr("    Native methods         : %6.3f s, Average : %2.3f", CompileBroker::_t_native_compilation.seconds(), CompileBroker::_t_native_compilation.seconds() / CompileBroker::_total_native_compile_count);
   607   float total = timers[_t_setup].seconds() + timers[_t_buildIR].seconds() + timers[_t_emit_lir].seconds() + timers[_t_lir_schedule].seconds() + timers[_t_codeemit].seconds() + timers[_t_codeinstall].seconds();
   618   float total = timers[_t_setup].seconds() + timers[_t_buildIR].seconds() + timers[_t_emit_lir].seconds() + timers[_t_lir_schedule].seconds() + timers[_t_codeemit].seconds() + timers[_t_codeinstall].seconds();
   608 
   619