494 CompileBroker::compile_method(mh, bci, level, mh, hot_count, "tiered", thread); |
494 CompileBroker::compile_method(mh, bci, level, mh, hot_count, "tiered", thread); |
495 } |
495 } |
496 |
496 |
497 // Handle the invocation event. |
497 // Handle the invocation event. |
498 void AdvancedThresholdPolicy::method_invocation_event(const methodHandle& mh, const methodHandle& imh, |
498 void AdvancedThresholdPolicy::method_invocation_event(const methodHandle& mh, const methodHandle& imh, |
499 CompLevel level, nmethod* nm, JavaThread* thread) { |
499 CompLevel level, CompiledMethod* nm, JavaThread* thread) { |
500 if (should_create_mdo(mh(), level)) { |
500 if (should_create_mdo(mh(), level)) { |
501 create_mdo(mh, thread); |
501 create_mdo(mh, thread); |
502 } |
502 } |
503 if (is_compilation_enabled() && !CompileBroker::compilation_is_in_queue(mh)) { |
503 if (is_compilation_enabled() && !CompileBroker::compilation_is_in_queue(mh)) { |
504 CompLevel next_level = call_event(mh(), level); |
504 CompLevel next_level = call_event(mh(), level); |
509 } |
509 } |
510 |
510 |
511 // Handle the back branch event. Notice that we can compile the method |
511 // Handle the back branch event. Notice that we can compile the method |
512 // with a regular entry from here. |
512 // with a regular entry from here. |
513 void AdvancedThresholdPolicy::method_back_branch_event(const methodHandle& mh, const methodHandle& imh, |
513 void AdvancedThresholdPolicy::method_back_branch_event(const methodHandle& mh, const methodHandle& imh, |
514 int bci, CompLevel level, nmethod* nm, JavaThread* thread) { |
514 int bci, CompLevel level, CompiledMethod* nm, JavaThread* thread) { |
515 if (should_create_mdo(mh(), level)) { |
515 if (should_create_mdo(mh(), level)) { |
516 create_mdo(mh, thread); |
516 create_mdo(mh, thread); |
517 } |
517 } |
518 // Check if MDO should be created for the inlined method |
518 // Check if MDO should be created for the inlined method |
519 if (should_create_mdo(imh(), level)) { |
519 if (should_create_mdo(imh(), level)) { |