src/hotspot/share/runtime/sharedRuntime.cpp
changeset 58226 408c445d04e8
parent 58084 cddef3bde924
child 58358 d658f4379c63
equal deleted inserted replaced
58225:4eebb9aadbe3 58226:408c445d04e8
  2900 
  2900 
  2901       // Generate the compiled-to-native wrapper code
  2901       // Generate the compiled-to-native wrapper code
  2902       nm = SharedRuntime::generate_native_wrapper(&_masm, method, compile_id, sig_bt, regs, ret_type, critical_entry);
  2902       nm = SharedRuntime::generate_native_wrapper(&_masm, method, compile_id, sig_bt, regs, ret_type, critical_entry);
  2903 
  2903 
  2904       if (nm != NULL) {
  2904       if (nm != NULL) {
  2905         method->set_code(method, nm);
  2905         {
       
  2906           MutexLocker pl(CompiledMethod_lock, Mutex::_no_safepoint_check_flag);
       
  2907           if (nm->make_in_use()) {
       
  2908             method->set_code(method, nm);
       
  2909           }
       
  2910         }
  2906 
  2911 
  2907         DirectiveSet* directive = DirectivesStack::getDefaultDirective(CompileBroker::compiler(CompLevel_simple));
  2912         DirectiveSet* directive = DirectivesStack::getDefaultDirective(CompileBroker::compiler(CompLevel_simple));
  2908         if (directive->PrintAssemblyOption) {
  2913         if (directive->PrintAssemblyOption) {
  2909           nm->print_code();
  2914           nm->print_code();
  2910         }
  2915         }