本文整理汇总了C++中methodOop::interpreter_invocation_count方法的典型用法代码示例。如果您正苦于以下问题:C++ methodOop::interpreter_invocation_count方法的具体用法?C++ methodOop::interpreter_invocation_count怎么用?C++ methodOop::interpreter_invocation_count使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类methodOop
的用法示例。
在下文中一共展示了methodOop::interpreter_invocation_count方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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;
}