本文整理汇总了C++中methodOop::backedge_counter方法的典型用法代码示例。如果您正苦于以下问题:C++ methodOop::backedge_counter方法的具体用法?C++ methodOop::backedge_counter怎么用?C++ methodOop::backedge_counter使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类methodOop
的用法示例。
在下文中一共展示了methodOop::backedge_counter方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: mileage_of
// 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;
}
示例2: mileage_of
// 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;
}
示例3: disable_compilation
void NonTieredCompPolicy::disable_compilation(methodOop method) {
method->invocation_counter()->set_state(InvocationCounter::wait_for_nothing);
method->backedge_counter()->set_state(InvocationCounter::wait_for_nothing);
}
示例4: delay_compilation
// This method can be called by any component of the runtime to notify the policy
// that it's recommended to delay the complation of this method.
void NonTieredCompPolicy::delay_compilation(methodOop method) {
method->invocation_counter()->decay();
method->backedge_counter()->decay();
}