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

src/share/vm/ci/ciEnv.cpp

Print this page




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




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


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