equal
deleted
inserted
replaced
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 } |