1.1 --- a/src/share/vm/compiler/compileLog.cpp Fri Oct 05 13:37:08 2012 -0700 1.2 +++ b/src/share/vm/compiler/compileLog.cpp Fri Oct 05 18:57:10 2012 -0700 1.3 @@ -302,3 +302,48 @@ 1.4 char buf[4 * K]; 1.5 finish_log_on_error(file, buf, sizeof(buf)); 1.6 } 1.7 + 1.8 +// ------------------------------------------------------------------ 1.9 +// CompileLog::inline_success 1.10 +// 1.11 +// Print about successful method inlining. 1.12 +void CompileLog::inline_success(const char* reason) { 1.13 + begin_elem("inline_success reason='"); 1.14 + text(reason); 1.15 + end_elem("'"); 1.16 +} 1.17 + 1.18 +// ------------------------------------------------------------------ 1.19 +// CompileLog::inline_fail 1.20 +// 1.21 +// Print about failed method inlining. 1.22 +void CompileLog::inline_fail(const char* reason) { 1.23 + begin_elem("inline_fail reason='"); 1.24 + text(reason); 1.25 + end_elem("'"); 1.26 +} 1.27 + 1.28 +// ------------------------------------------------------------------ 1.29 +// CompileLog::set_context 1.30 +// 1.31 +// Set XML tag as an optional marker - it is printed only if 1.32 +// there are other entries after until it is reset. 1.33 +void CompileLog::set_context(const char* format, ...) { 1.34 + va_list ap; 1.35 + va_start(ap, format); 1.36 + clear_context(); 1.37 + _context.print("<"); 1.38 + _context.vprint(format, ap); 1.39 + _context.print_cr("/>"); 1.40 + va_end(ap); 1.41 +} 1.42 + 1.43 +// ------------------------------------------------------------------ 1.44 +// CompileLog::code_cache_state 1.45 +// 1.46 +// Print code cache state. 1.47 +void CompileLog::code_cache_state() { 1.48 + begin_elem("code_cache"); 1.49 + CodeCache::log_state(this); 1.50 + end_elem(""); 1.51 +}