hotspot/src/share/vm/oops/methodData.cpp
changeset 17000 11bf92e571a2
parent 16611 6807a703dd6b
child 17002 d86c9dfa4a5f
equal deleted inserted replaced
16665:482e60f4f893 17000:11bf92e571a2
   730   if (TieredCompilation) {
   730   if (TieredCompilation) {
   731     mileage = MAX2(method->invocation_count(), method->backedge_count());
   731     mileage = MAX2(method->invocation_count(), method->backedge_count());
   732   } else {
   732   } else {
   733     int iic = method->interpreter_invocation_count();
   733     int iic = method->interpreter_invocation_count();
   734     if (mileage < iic)  mileage = iic;
   734     if (mileage < iic)  mileage = iic;
   735     InvocationCounter* ic = method->invocation_counter();
   735     MethodCounters* mcs = method->method_counters();
   736     InvocationCounter* bc = method->backedge_counter();
   736     if (mcs != NULL) {
   737     int icval = ic->count();
   737       InvocationCounter* ic = mcs->invocation_counter();
   738     if (ic->carry()) icval += CompileThreshold;
   738       InvocationCounter* bc = mcs->backedge_counter();
   739     if (mileage < icval)  mileage = icval;
   739       int icval = ic->count();
   740     int bcval = bc->count();
   740       if (ic->carry()) icval += CompileThreshold;
   741     if (bc->carry()) bcval += CompileThreshold;
   741       if (mileage < icval)  mileage = icval;
   742     if (mileage < bcval)  mileage = bcval;
   742       int bcval = bc->count();
       
   743       if (bc->carry()) bcval += CompileThreshold;
       
   744       if (mileage < bcval)  mileage = bcval;
       
   745     }
   743   }
   746   }
   744   return mileage;
   747   return mileage;
   745 }
   748 }
   746 
   749 
   747 bool MethodData::is_mature() const {
   750 bool MethodData::is_mature() const {