mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8144874
: Reimplement TraceClassResolution with Unified Logging
TraceClassResolution reimplemented with classresolve tag. Reviewed-by: coleenp, dholmes, iklam, rprotacio
This commit is contained in:
parent
76d0d92563
commit
de7d9e821c
12 changed files with 31 additions and 31 deletions
|
@ -5369,12 +5369,12 @@ void ClassFileParser::fill_instance_klass(InstanceKlass* ik, TRAPS) {
|
|||
}
|
||||
}
|
||||
|
||||
if (TraceClassResolution) {
|
||||
if (log_is_enabled(Info, classresolve)) {
|
||||
ResourceMark rm;
|
||||
// print out the superclass.
|
||||
const char * from = ik->external_name();
|
||||
if (ik->java_super() != NULL) {
|
||||
tty->print("RESOLVE %s %s (super)\n",
|
||||
log_info(classresolve)("%s %s (super)",
|
||||
from,
|
||||
ik->java_super()->external_name());
|
||||
}
|
||||
|
@ -5385,7 +5385,7 @@ void ClassFileParser::fill_instance_klass(InstanceKlass* ik, TRAPS) {
|
|||
for (int i = 0; i < length; i++) {
|
||||
const Klass* const k = local_interfaces->at(i);
|
||||
const char * to = k->external_name();
|
||||
tty->print("RESOLVE %s %s (interface)\n", from, to);
|
||||
log_info(classresolve)("%s %s (interface)", from, to);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue