hotspot/src/share/vm/runtime/simpleThresholdPolicy.cpp
changeset 24324 e18584aa83e2
parent 24321 621f7e09fc0a
child 27447 5cd7caca045d
equal deleted inserted replaced
24323:f84b15cd9e1a 24324:e18584aa83e2
   188 nmethod* SimpleThresholdPolicy::event(methodHandle method, methodHandle inlinee,
   188 nmethod* SimpleThresholdPolicy::event(methodHandle method, methodHandle inlinee,
   189                                       int branch_bci, int bci, CompLevel comp_level, nmethod* nm, JavaThread* thread) {
   189                                       int branch_bci, int bci, CompLevel comp_level, nmethod* nm, JavaThread* thread) {
   190   if (comp_level == CompLevel_none &&
   190   if (comp_level == CompLevel_none &&
   191       JvmtiExport::can_post_interpreter_events() &&
   191       JvmtiExport::can_post_interpreter_events() &&
   192       thread->is_interp_only_mode()) {
   192       thread->is_interp_only_mode()) {
       
   193     return NULL;
       
   194   }
       
   195   if (CompileTheWorld || ReplayCompiles) {
       
   196     // Don't trigger other compiles in testing mode
   193     return NULL;
   197     return NULL;
   194   }
   198   }
   195   nmethod *osr_nm = NULL;
   199   nmethod *osr_nm = NULL;
   196 
   200 
   197   handle_counter_overflow(method());
   201   handle_counter_overflow(method());