rev 56252 : imported patch 8226705-v2
@@ -443,10 +443,11 @@ if (mh->has_aot_code() && mh->code() != mh->aot_code()) { mh->aot_code()->make_entrant(); 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()); } } return; }