comparison src/share/vm/compiler/compileLog.cpp @ 18041:52b4284cb496

Merge with jdk8u20-b26
author Gilles Duboscq <duboscq@ssw.jku.at>
date Wed, 15 Oct 2014 16:02:50 +0200
parents 89152779163c 78bbf4d43a14
children 7848fc12602b
comparison
equal deleted inserted replaced
17606:45d7b2c7029d 18041:52b4284cb496
1 /* 1 /*
2 * Copyright (c) 2002, 2013, Oracle and/or its affiliates. All rights reserved. 2 * Copyright (c) 2002, 2014, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 * 4 *
5 * This code is free software; you can redistribute it and/or modify it 5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as 6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. 7 * published by the Free Software Foundation.
292 // CompileLog::inline_success 292 // CompileLog::inline_success
293 // 293 //
294 // Print about successful method inlining. 294 // Print about successful method inlining.
295 void CompileLog::inline_success(const char* reason) { 295 void CompileLog::inline_success(const char* reason) {
296 begin_elem("inline_success reason='"); 296 begin_elem("inline_success reason='");
297 text(reason); 297 text("%s", reason);
298 end_elem("'"); 298 end_elem("'");
299 } 299 }
300 300
301 // ------------------------------------------------------------------ 301 // ------------------------------------------------------------------
302 // CompileLog::inline_fail 302 // CompileLog::inline_fail
303 // 303 //
304 // Print about failed method inlining. 304 // Print about failed method inlining.
305 void CompileLog::inline_fail(const char* reason) { 305 void CompileLog::inline_fail(const char* reason) {
306 begin_elem("inline_fail reason='"); 306 begin_elem("inline_fail reason='");
307 text(reason); 307 text("%s", reason);
308 end_elem("'"); 308 end_elem("'");
309 } 309 }
310 310
311 // ------------------------------------------------------------------ 311 // ------------------------------------------------------------------
312 // CompileLog::set_context 312 // CompileLog::set_context
328 // 328 //
329 // Print code cache state. 329 // Print code cache state.
330 void CompileLog::code_cache_state() { 330 void CompileLog::code_cache_state() {
331 begin_elem("code_cache"); 331 begin_elem("code_cache");
332 CodeCache::log_state(this); 332 CodeCache::log_state(this);
333 end_elem(""); 333 end_elem("%s", "");
334 } 334 }