diff -r 4eebb9aadbe3 -r 408c445d04e8 src/hotspot/share/runtime/tieredThresholdPolicy.cpp --- a/src/hotspot/share/runtime/tieredThresholdPolicy.cpp Thu Sep 19 09:50:11 2019 +0200 +++ b/src/hotspot/share/runtime/tieredThresholdPolicy.cpp Thu Sep 19 10:52:22 2019 +0200 @@ -445,6 +445,7 @@ if (mh->has_compiled_code()) { mh->code()->make_not_entrant(); } + MutexLocker pl(CompiledMethod_lock, Mutex::_no_safepoint_check_flag); Method::set_code(mh, mh->aot_code()); } }