1084 char *method_name = method->name_and_sig_as_C_string();
1085 ttyLocker ttyl;
1086 tty->print_cr("Installing method (%d) %s ",
1087 task()->comp_level(),
1088 method_name);
1089 }
1090 // Allow the code to be executed
1091 method->set_code(method, nm);
1092 } else {
1093 if (TraceNMethodInstalls) {
1094 ResourceMark rm;
1095 char *method_name = method->name_and_sig_as_C_string();
1096 ttyLocker ttyl;
1097 tty->print_cr("Installing osr method (%d) %s @ %d",
1098 task()->comp_level(),
1099 method_name,
1100 entry_bci);
1101 }
1102 method->method_holder()->add_osr_nmethod(nm);
1103 }
1104 }
1105 } // safepoints are allowed again
1106
1107 if (nm != NULL) {
1108 // JVMTI -- compiled method notification (must be done outside lock)
1109 nm->post_compiled_method_load_event();
1110 } else {
1111 // The CodeCache is full.
1112 record_failure("code cache is full");
1113 }
1114 }
1115
1116
1117 // ------------------------------------------------------------------
1118 // ciEnv::find_system_klass
1119 ciKlass* ciEnv::find_system_klass(ciSymbol* klass_name) {
1120 VM_ENTRY_MARK;
1121 return get_klass_by_name_impl(NULL, constantPoolHandle(), klass_name, false);
1122 }
1123
|
1084 char *method_name = method->name_and_sig_as_C_string();
1085 ttyLocker ttyl;
1086 tty->print_cr("Installing method (%d) %s ",
1087 task()->comp_level(),
1088 method_name);
1089 }
1090 // Allow the code to be executed
1091 method->set_code(method, nm);
1092 } else {
1093 if (TraceNMethodInstalls) {
1094 ResourceMark rm;
1095 char *method_name = method->name_and_sig_as_C_string();
1096 ttyLocker ttyl;
1097 tty->print_cr("Installing osr method (%d) %s @ %d",
1098 task()->comp_level(),
1099 method_name,
1100 entry_bci);
1101 }
1102 method->method_holder()->add_osr_nmethod(nm);
1103 }
1104 nm->make_in_use();
1105 }
1106 } // safepoints are allowed again
1107
1108 if (nm != NULL) {
1109 // JVMTI -- compiled method notification (must be done outside lock)
1110 nm->post_compiled_method_load_event();
1111 } else {
1112 // The CodeCache is full.
1113 record_failure("code cache is full");
1114 }
1115 }
1116
1117
1118 // ------------------------------------------------------------------
1119 // ciEnv::find_system_klass
1120 ciKlass* ciEnv::find_system_klass(ciSymbol* klass_name) {
1121 VM_ENTRY_MARK;
1122 return get_klass_by_name_impl(NULL, constantPoolHandle(), klass_name, false);
1123 }
1124
|