comparison src/share/vm/compiler/compileLog.cpp @ 17937:78bbf4d43a14

8037816: Fix for 8036122 breaks build with Xcode5/clang 8043029: Change 8037816 breaks HS build with older GCC versions which don't support diagnostic pragmas 8043164: Format warning in traceStream.hpp Summary: Backport of main fix + two corrections, enables clang compilation, turns on format attributes, corrects/mutes warnings Reviewed-by: kvn, coleenp, iveresov, twisti
author drchase
date Thu, 22 May 2014 15:52:41 -0400
parents 55fb97c4c58d
children 52b4284cb496 ecccc23346fe
comparison
equal deleted inserted replaced
17935:7384f6a12fc1 17937:78bbf4d43a14
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 }