diff -r 4eebb9aadbe3 -r 408c445d04e8 src/hotspot/share/code/compiledMethod.cpp --- a/src/hotspot/share/code/compiledMethod.cpp Thu Sep 19 09:50:11 2019 +0200 +++ b/src/hotspot/share/code/compiledMethod.cpp Thu Sep 19 10:52:22 2019 +0200 @@ -104,6 +104,13 @@ } //----------------------------------------------------------------------------- +void CompiledMethod::mark_for_deoptimization(bool inc_recompile_counts) { + MutexLocker ml(CompiledMethod_lock->owned_by_self() ? NULL : CompiledMethod_lock, + Mutex::_no_safepoint_check_flag); + _mark_for_deoptimization_status = (inc_recompile_counts ? deoptimize : deoptimize_noupdate); +} + +//----------------------------------------------------------------------------- ExceptionCache* CompiledMethod::exception_cache_acquire() const { return OrderAccess::load_acquire(&_exception_cache);