hotspot/src/share/vm/compiler/compileBroker.cpp
changeset 25503 9f471b837330
parent 25477 7dad9f95fd31
child 25647 949674dcd7c7
equal deleted inserted replaced
25502:92dc8bd62c69 25503:9f471b837330
  2121 // Record this compilation for debugging purposes.
  2121 // Record this compilation for debugging purposes.
  2122 void CompileBroker::set_last_compile(CompilerThread* thread, methodHandle method, bool is_osr, int comp_level) {
  2122 void CompileBroker::set_last_compile(CompilerThread* thread, methodHandle method, bool is_osr, int comp_level) {
  2123   ResourceMark rm;
  2123   ResourceMark rm;
  2124   char* method_name = method->name()->as_C_string();
  2124   char* method_name = method->name()->as_C_string();
  2125   strncpy(_last_method_compiled, method_name, CompileBroker::name_buffer_length);
  2125   strncpy(_last_method_compiled, method_name, CompileBroker::name_buffer_length);
       
  2126   _last_method_compiled[CompileBroker::name_buffer_length - 1] = '\0'; // ensure null terminated
  2126   char current_method[CompilerCounters::cmname_buffer_length];
  2127   char current_method[CompilerCounters::cmname_buffer_length];
  2127   size_t maxLen = CompilerCounters::cmname_buffer_length;
  2128   size_t maxLen = CompilerCounters::cmname_buffer_length;
  2128 
  2129 
  2129   if (UsePerfData) {
  2130   if (UsePerfData) {
  2130     const char* class_name = method->method_holder()->name()->as_C_string();
  2131     const char* class_name = method->method_holder()->name()->as_C_string();