src/hotspot/share/code/compiledMethod.cpp
changeset 58226 408c445d04e8
parent 55293 d19dc5b10fbb
child 58679 9c3209ff7550
child 59056 15936b142f86
equal deleted inserted replaced
58225:4eebb9aadbe3 58226:408c445d04e8
   102     return NULL;
   102     return NULL;
   103   }
   103   }
   104 }
   104 }
   105 
   105 
   106 //-----------------------------------------------------------------------------
   106 //-----------------------------------------------------------------------------
       
   107 void CompiledMethod::mark_for_deoptimization(bool inc_recompile_counts) {
       
   108   MutexLocker ml(CompiledMethod_lock->owned_by_self() ? NULL : CompiledMethod_lock,
       
   109                  Mutex::_no_safepoint_check_flag);
       
   110   _mark_for_deoptimization_status = (inc_recompile_counts ? deoptimize : deoptimize_noupdate);
       
   111 }
       
   112 
       
   113 //-----------------------------------------------------------------------------
   107 
   114 
   108 ExceptionCache* CompiledMethod::exception_cache_acquire() const {
   115 ExceptionCache* CompiledMethod::exception_cache_acquire() const {
   109   return OrderAccess::load_acquire(&_exception_cache);
   116   return OrderAccess::load_acquire(&_exception_cache);
   110 }
   117 }
   111 
   118