< prev index next >

src/hotspot/share/oops/method.inline.hpp

Print this page

199   } else {
200     return ((mcs != nullptr) ? mcs->invocation_counter()->count() : 0) +
201            ((mdo != nullptr) ? mdo->invocation_counter()->count() : 0);
202   }
203 }
204 
205 inline int Method::backedge_count() const {
206   MethodCounters* mcs = method_counters();
207   MethodData* mdo = method_data();
208   if (((mcs != nullptr) ? mcs->backedge_counter()->carry() : false) ||
209       ((mdo != nullptr) ? mdo->backedge_counter()->carry() : false)) {
210     return InvocationCounter::count_limit;
211   } else {
212     return ((mcs != nullptr) ? mcs->backedge_counter()->count() : 0) +
213            ((mdo != nullptr) ? mdo->backedge_counter()->count() : 0);
214   }
215 }
216 
217 inline int Method::highest_comp_level() const {
218   const MethodCounters* mcs = method_counters();


219   if (mcs != nullptr) {
220     return mcs->highest_comp_level();
221   } else {
222     return CompLevel_none;
223   }
224 }
225 
226 inline int Method::interpreter_invocation_count() const {
227   return invocation_count();
228 }
229 
230 #endif // SHARE_OOPS_METHOD_INLINE_HPP

199   } else {
200     return ((mcs != nullptr) ? mcs->invocation_counter()->count() : 0) +
201            ((mdo != nullptr) ? mdo->invocation_counter()->count() : 0);
202   }
203 }
204 
205 inline int Method::backedge_count() const {
206   MethodCounters* mcs = method_counters();
207   MethodData* mdo = method_data();
208   if (((mcs != nullptr) ? mcs->backedge_counter()->carry() : false) ||
209       ((mdo != nullptr) ? mdo->backedge_counter()->carry() : false)) {
210     return InvocationCounter::count_limit;
211   } else {
212     return ((mcs != nullptr) ? mcs->backedge_counter()->count() : 0) +
213            ((mdo != nullptr) ? mdo->backedge_counter()->count() : 0);
214   }
215 }
216 
217 inline int Method::highest_comp_level() const {
218   const MethodCounters* mcs = method_counters();
219   nmethod* nm = code();
220   int level = (nm != nullptr) ? nm->comp_level() : CompLevel_none;
221   if (mcs != nullptr) {
222     return MAX2(mcs->highest_comp_level(), level);
223   } else {
224     return CompLevel_none;
225   }
226 }
227 
228 inline int Method::interpreter_invocation_count() const {
229   return invocation_count();
230 }
231 
232 #endif // SHARE_OOPS_METHOD_INLINE_HPP
< prev index next >