mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-26 22:34:27 +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) 1997, 2013, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1997, 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
|
||||
|
@ -88,9 +88,9 @@ void CompiledIC::internal_set_ic_destination(address entry_point, bool is_icstub
|
|||
if (TraceCompiledIC) {
|
||||
tty->print(" ");
|
||||
print_compiled_ic();
|
||||
tty->print(" changing destination to " INTPTR_FORMAT, entry_point);
|
||||
tty->print(" changing destination to " INTPTR_FORMAT, p2i(entry_point));
|
||||
if (!is_optimized()) {
|
||||
tty->print(" changing cached %s to " INTPTR_FORMAT, is_icholder ? "icholder" : "metadata", (address)cache);
|
||||
tty->print(" changing cached %s to " INTPTR_FORMAT, is_icholder ? "icholder" : "metadata", p2i((address)cache));
|
||||
}
|
||||
if (is_icstub) {
|
||||
tty->print(" (icstub)");
|
||||
|
@ -195,7 +195,7 @@ bool CompiledIC::set_to_megamorphic(CallInfo* call_info, Bytecodes::Code bytecod
|
|||
if (TraceICs) {
|
||||
ResourceMark rm;
|
||||
tty->print_cr ("IC@" INTPTR_FORMAT ": to megamorphic %s entry: " INTPTR_FORMAT,
|
||||
instruction_address(), call_info->selected_method()->print_value_string(), entry);
|
||||
p2i(instruction_address()), call_info->selected_method()->print_value_string(), p2i(entry));
|
||||
}
|
||||
|
||||
// We can't check this anymore. With lazy deopt we could have already
|
||||
|
@ -272,7 +272,7 @@ bool CompiledIC::is_call_to_interpreted() const {
|
|||
void CompiledIC::set_to_clean() {
|
||||
assert(SafepointSynchronize::is_at_safepoint() || CompiledIC_lock->is_locked() , "MT-unsafe call");
|
||||
if (TraceInlineCacheClearing || TraceICs) {
|
||||
tty->print_cr("IC@" INTPTR_FORMAT ": set to clean", instruction_address());
|
||||
tty->print_cr("IC@" INTPTR_FORMAT ": set to clean", p2i(instruction_address()));
|
||||
print();
|
||||
}
|
||||
|
||||
|
@ -354,7 +354,7 @@ void CompiledIC::set_to_monomorphic(CompiledICInfo& info) {
|
|||
if (TraceICs) {
|
||||
ResourceMark rm(thread);
|
||||
tty->print_cr ("IC@" INTPTR_FORMAT ": monomorphic to interpreter: %s",
|
||||
instruction_address(),
|
||||
p2i(instruction_address()),
|
||||
method->print_value_string());
|
||||
}
|
||||
} else {
|
||||
|
@ -362,7 +362,7 @@ void CompiledIC::set_to_monomorphic(CompiledICInfo& info) {
|
|||
InlineCacheBuffer::create_transition_stub(this, info.claim_cached_icholder(), info.entry());
|
||||
if (TraceICs) {
|
||||
ResourceMark rm(thread);
|
||||
tty->print_cr ("IC@" INTPTR_FORMAT ": monomorphic to interpreter via icholder ", instruction_address());
|
||||
tty->print_cr ("IC@" INTPTR_FORMAT ": monomorphic to interpreter via icholder ", p2i(instruction_address()));
|
||||
}
|
||||
}
|
||||
} else {
|
||||
|
@ -392,7 +392,7 @@ void CompiledIC::set_to_monomorphic(CompiledICInfo& info) {
|
|||
ResourceMark rm(thread);
|
||||
assert(info.cached_metadata() == NULL || info.cached_metadata()->is_klass(), "must be");
|
||||
tty->print_cr ("IC@" INTPTR_FORMAT ": monomorphic to compiled (rcvr klass) %s: %s",
|
||||
instruction_address(),
|
||||
p2i(instruction_address()),
|
||||
((Klass*)info.cached_metadata())->print_value_string(),
|
||||
(safe) ? "" : "via stub");
|
||||
}
|
||||
|
@ -530,8 +530,8 @@ void CompiledStaticCall::set(const StaticCallInfo& info) {
|
|||
if (TraceICs) {
|
||||
ResourceMark rm;
|
||||
tty->print_cr("CompiledStaticCall@" INTPTR_FORMAT ": set_to_compiled " INTPTR_FORMAT,
|
||||
instruction_address(),
|
||||
info.entry());
|
||||
p2i(instruction_address()),
|
||||
p2i(info.entry()));
|
||||
}
|
||||
// Call to compiled code
|
||||
assert (CodeCache::contains(info.entry()), "wrong entry point");
|
||||
|
@ -600,11 +600,11 @@ void CompiledIC::print() {
|
|||
|
||||
void CompiledIC::print_compiled_ic() {
|
||||
tty->print("Inline cache at " INTPTR_FORMAT ", calling %s " INTPTR_FORMAT " cached_value " INTPTR_FORMAT,
|
||||
instruction_address(), is_call_to_interpreted() ? "interpreted " : "", ic_destination(), is_optimized() ? NULL : cached_value());
|
||||
p2i(instruction_address()), is_call_to_interpreted() ? "interpreted " : "", p2i(ic_destination()), p2i(is_optimized() ? NULL : cached_value()));
|
||||
}
|
||||
|
||||
void CompiledStaticCall::print() {
|
||||
tty->print("static call at " INTPTR_FORMAT " -> ", instruction_address());
|
||||
tty->print("static call at " INTPTR_FORMAT " -> ", p2i(instruction_address()));
|
||||
if (is_clean()) {
|
||||
tty->print("clean");
|
||||
} else if (is_call_to_compiled()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue