mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-25 05:45:11 +02:00
8037816: Fix for 8036122 breaks build with Xcode5/clang
Repaired or selectively disabled offending formats; future-proofed with additional checking Reviewed-by: kvn, jrose, stefank
This commit is contained in:
parent
563feb9091
commit
305ec3bd3f
293 changed files with 1285 additions and 913 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2002, 2013, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2002, 2014, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
|
@ -174,9 +174,9 @@ void CompileLog::name(ciSymbol* name) {
|
|||
void CompileLog::name(ciKlass* k) {
|
||||
print(" name='");
|
||||
if (!k->is_loaded()) {
|
||||
text()->print(k->name()->as_klass_external_name());
|
||||
text()->print("%s", k->name()->as_klass_external_name());
|
||||
} else {
|
||||
text()->print(k->external_name());
|
||||
text()->print("%s", k->external_name());
|
||||
}
|
||||
print("'");
|
||||
}
|
||||
|
@ -303,7 +303,7 @@ void CompileLog::finish_log(outputStream* file) {
|
|||
// Print about successful method inlining.
|
||||
void CompileLog::inline_success(const char* reason) {
|
||||
begin_elem("inline_success reason='");
|
||||
text(reason);
|
||||
text("%s", reason);
|
||||
end_elem("'");
|
||||
}
|
||||
|
||||
|
@ -313,7 +313,7 @@ void CompileLog::inline_success(const char* reason) {
|
|||
// Print about failed method inlining.
|
||||
void CompileLog::inline_fail(const char* reason) {
|
||||
begin_elem("inline_fail reason='");
|
||||
text(reason);
|
||||
text("%s", reason);
|
||||
end_elem("'");
|
||||
}
|
||||
|
||||
|
@ -339,5 +339,5 @@ void CompileLog::set_context(const char* format, ...) {
|
|||
void CompileLog::code_cache_state() {
|
||||
begin_elem("code_cache");
|
||||
CodeCache::log_state(this);
|
||||
end_elem("");
|
||||
end_elem("%s", "");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue