hotspot/src/share/vm/runtime/advancedThresholdPolicy.cpp
changeset 38133 78b95467b9f1
parent 36597 ee256e343585
child 38218 f5ba1dea04eb
equal deleted inserted replaced
38132:ba888a4f352a 38133:78b95467b9f1
   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)) {