Mercurial > hg > truffle
comparison src/share/vm/compiler/compileBroker.cpp @ 20204:d22136881b85
Merge
author | robm |
---|---|
date | Thu, 17 Jul 2014 18:03:26 +0100 |
parents | f73af4455d7d |
children | 52b4284cb496 7301840ea20e |
comparison
equal
deleted
inserted
replaced
20203:4ca77b815015 | 20204:d22136881b85 |
---|---|
2087 // Record this compilation for debugging purposes. | 2087 // Record this compilation for debugging purposes. |
2088 void CompileBroker::set_last_compile(CompilerThread* thread, methodHandle method, bool is_osr, int comp_level) { | 2088 void CompileBroker::set_last_compile(CompilerThread* thread, methodHandle method, bool is_osr, int comp_level) { |
2089 ResourceMark rm; | 2089 ResourceMark rm; |
2090 char* method_name = method->name()->as_C_string(); | 2090 char* method_name = method->name()->as_C_string(); |
2091 strncpy(_last_method_compiled, method_name, CompileBroker::name_buffer_length); | 2091 strncpy(_last_method_compiled, method_name, CompileBroker::name_buffer_length); |
2092 _last_method_compiled[CompileBroker::name_buffer_length - 1] = '\0'; // ensure null terminated | |
2092 char current_method[CompilerCounters::cmname_buffer_length]; | 2093 char current_method[CompilerCounters::cmname_buffer_length]; |
2093 size_t maxLen = CompilerCounters::cmname_buffer_length; | 2094 size_t maxLen = CompilerCounters::cmname_buffer_length; |
2094 | 2095 |
2095 if (UsePerfData) { | 2096 if (UsePerfData) { |
2096 const char* class_name = method->method_holder()->name()->as_C_string(); | 2097 const char* class_name = method->method_holder()->name()->as_C_string(); |