src/share/vm/ci/ciEnv.cpp
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File hotspot Sdiff src/share/vm/ci

src/share/vm/ci/ciEnv.cpp

Print this page




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




1076         method->set_code(method, nm);
1077       } else {
1078         if (TraceNMethodInstalls) {
1079           ResourceMark rm;
1080           char *method_name = method->name_and_sig_as_C_string();
1081           ttyLocker ttyl;
1082           tty->print_cr("Installing osr method (%d) %s @ %d",
1083                         comp_level,
1084                         method_name,
1085                         entry_bci);
1086         }
1087         method->method_holder()->add_osr_nmethod(nm);
1088       }
1089     }
1090   }  // safepoints are allowed again
1091 
1092   if (nm != NULL) {
1093     // JVMTI -- compiled method notification (must be done outside lock)
1094     nm->post_compiled_method_load_event();
1095   } else {
1096     // The CodeCache is full.
1097     record_failure("code cache is full");

1098   }
1099 }
1100 
1101 
1102 // ------------------------------------------------------------------
1103 // ciEnv::find_system_klass
1104 ciKlass* ciEnv::find_system_klass(ciSymbol* klass_name) {
1105   VM_ENTRY_MARK;
1106   return get_klass_by_name_impl(NULL, constantPoolHandle(), klass_name, false);
1107 }
1108 
1109 // ------------------------------------------------------------------
1110 // ciEnv::comp_level
1111 int ciEnv::comp_level() {
1112   if (task() == NULL)  return CompLevel_highest_tier;
1113   return task()->comp_level();
1114 }
1115 
1116 // ------------------------------------------------------------------
1117 // ciEnv::compile_id


src/share/vm/ci/ciEnv.cpp
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File