src/hotspot/share/runtime/tieredThresholdPolicy.cpp
changeset 58226 408c445d04e8
parent 55206 2fe2063fe567
equal deleted inserted replaced
58225:4eebb9aadbe3 58226:408c445d04e8
   443       if (mh->has_aot_code() && mh->code() != mh->aot_code()) {
   443       if (mh->has_aot_code() && mh->code() != mh->aot_code()) {
   444         mh->aot_code()->make_entrant();
   444         mh->aot_code()->make_entrant();
   445         if (mh->has_compiled_code()) {
   445         if (mh->has_compiled_code()) {
   446           mh->code()->make_not_entrant();
   446           mh->code()->make_not_entrant();
   447         }
   447         }
       
   448         MutexLocker pl(CompiledMethod_lock, Mutex::_no_safepoint_check_flag);
   448         Method::set_code(mh, mh->aot_code());
   449         Method::set_code(mh, mh->aot_code());
   449       }
   450       }
   450     }
   451     }
   451     return;
   452     return;
   452   }
   453   }