// Get a measure of how much mileage the method has on it. int methodDataOopDesc::mileage_of(methodOop method) { int mileage = 0; #ifdef COMPILER2 int iic = method->interpreter_invocation_count(); if (mileage < iic) mileage = iic; #endif int icval = method->invocation_counter()->count(); if (mileage < icval) mileage = icval; int bcval = method->backedge_counter()->count(); if (mileage < bcval) mileage = bcval; return mileage; }
// Get a measure of how much mileage the method has on it. int methodDataOopDesc::mileage_of(methodOop method) { int mileage = 0; int iic = method->interpreter_invocation_count(); if (mileage < iic) mileage = iic; InvocationCounter* ic = method->invocation_counter(); InvocationCounter* bc = method->backedge_counter(); int icval = ic->count(); if (ic->carry()) icval += CompileThreshold; if (mileage < icval) mileage = icval; int bcval = bc->count(); if (bc->carry()) bcval += CompileThreshold; if (mileage < bcval) mileage = bcval; return mileage; }