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