equal
deleted
inserted
replaced
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(); |