Lines Matching defs:mh

34 void SimpleThresholdPolicy::print_counters(const char* prefix, methodHandle mh) {
35 int invocation_count = mh->invocation_count();
36 int backedge_count = mh->backedge_count();
37 methodDataHandle mdh = mh->method_data();
51 mh->highest_comp_level(), mh->highest_osr_comp_level());
55 void SimpleThresholdPolicy::print_event(EventType type, methodHandle mh, methodHandle imh,
57 bool inlinee_event = mh() != imh();
91 char *method_name = mh->name_and_sig_as_C_string();
101 print_specific(type, mh, imh, bci, level);
104 print_counters("", mh);
110 if (!mh->is_not_compilable(CompLevel_full_profile)) {
114 if (!mh->is_not_osr_compilable(CompLevel_full_profile)) {
119 if (!mh->is_not_compilable(CompLevel_full_optimization)) {
124 if (!mh->is_not_osr_compilable(CompLevel_full_optimization)) {
129 if (mh->queued_for_compilation()) {
173 methodHandle mh(sd->method());
174 print_event(REPROFILE, mh, mh, InvocationEntryBci, CompLevel_none);
216 void SimpleThresholdPolicy::compile(methodHandle mh, int bci, CompLevel level, JavaThread* thread) {
225 if (!can_be_compiled(mh, level)) {
226 if (level == CompLevel_full_optimization && can_be_compiled(mh, CompLevel_simple)) {
227 compile(mh, bci, CompLevel_simple, thread);
231 if (bci != InvocationEntryBci && mh->is_not_osr_compilable(level)) {
234 if (!CompileBroker::compilation_is_in_queue(mh, bci)) {
236 print_event(COMPILE, mh, mh, bci, level);
238 submit_compile(mh, bci, level, thread);
243 void SimpleThresholdPolicy::submit_compile(methodHandle mh, int bci, CompLevel level, JavaThread* thread) {
244 int hot_count = (bci == InvocationEntryBci) ? mh->invocation_count() : mh->backedge_count();
245 CompileBroker::compile_method(mh, bci, level, mh, hot_count, "tiered", thread);
371 void SimpleThresholdPolicy::method_invocation_event(methodHandle mh, methodHandle imh,
373 if (is_compilation_enabled() && !CompileBroker::compilation_is_in_queue(mh, InvocationEntryBci)) {
374 CompLevel next_level = call_event(mh(), level);
376 compile(mh, InvocationEntryBci, next_level, thread);
383 void SimpleThresholdPolicy::method_back_branch_event(methodHandle mh, methodHandle imh,
386 if (is_compilation_enabled() && !CompileBroker::compilation_is_in_queue(mh, bci)) {
389 CompLevel cur_level = comp_level(mh());
390 CompLevel next_level = call_event(mh(), cur_level);
391 CompLevel next_osr_level = loop_event(mh(), level);
397 compile(mh, InvocationEntryBci, next_level, thread);
403 compile(mh, bci, next_osr_level, thread);