< prev index next >
src/share/vm/runtime/sharedRuntime.cpp
Print this page
*** 2822,2832 ****
--- 2822,2835 ----
// Generate the compiled-to-native wrapper code
nm = SharedRuntime::generate_native_wrapper(&_masm, method, compile_id, sig_bt, regs, ret_type);
if (nm != NULL) {
+ {
+ MutexLockerEx pl(Patching_lock, Mutex::_no_safepoint_check_flag);
method->set_code(method, nm);
+ }
DirectiveSet* directive = DirectivesStack::getDefaultDirective(CompileBroker::compiler(CompLevel_simple));
if (directive->PrintAssemblyOption) {
nm->print_code();
}
< prev index next >