1541 } |
1541 } |
1542 if (old != NULL ) { |
1542 if (old != NULL ) { |
1543 old->make_not_entrant(); |
1543 old->make_not_entrant(); |
1544 } |
1544 } |
1545 } |
1545 } |
1546 if (TraceNMethodInstalls) { |
1546 |
|
1547 LogTarget(Info, nmethod, install) lt; |
|
1548 if (lt.is_enabled()) { |
1547 ResourceMark rm; |
1549 ResourceMark rm; |
1548 char *method_name = method->name_and_sig_as_C_string(); |
1550 char *method_name = method->name_and_sig_as_C_string(); |
1549 ttyLocker ttyl; |
1551 lt.print("Installing method (%d) %s [entry point: %p]", |
1550 tty->print_cr("Installing method (%d) %s [entry point: %p]", |
1552 comp_level, method_name, nm->entry_point()); |
1551 comp_level, |
|
1552 method_name, nm->entry_point()); |
|
1553 } |
1553 } |
1554 // Allow the code to be executed |
1554 // Allow the code to be executed |
1555 method->set_code(method, nm); |
1555 method->set_code(method, nm); |
1556 } else { |
1556 } else { |
1557 if (TraceNMethodInstalls ) { |
1557 LogTarget(Info, nmethod, install) lt; |
|
1558 if (lt.is_enabled()) { |
1558 ResourceMark rm; |
1559 ResourceMark rm; |
1559 char *method_name = method->name_and_sig_as_C_string(); |
1560 char *method_name = method->name_and_sig_as_C_string(); |
1560 ttyLocker ttyl; |
1561 lt.print("Installing osr method (%d) %s @ %d", |
1561 tty->print_cr("Installing osr method (%d) %s @ %d", |
1562 comp_level, method_name, entry_bci); |
1562 comp_level, |
|
1563 method_name, |
|
1564 entry_bci); |
|
1565 } |
1563 } |
1566 InstanceKlass::cast(method->method_holder())->add_osr_nmethod(nm); |
1564 InstanceKlass::cast(method->method_holder())->add_osr_nmethod(nm); |
1567 } |
1565 } |
1568 } else { |
1566 } else { |
1569 assert(!nmethod_mirror.is_hotspot() || data->get_nmethod_mirror(nm) == HotSpotJVMCI::resolve(nmethod_mirror), "must be"); |
1567 assert(!nmethod_mirror.is_hotspot() || data->get_nmethod_mirror(nm) == HotSpotJVMCI::resolve(nmethod_mirror), "must be"); |