mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-18 01:54:47 +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
|
@ -204,11 +204,11 @@ void ConstantPool::trace_class_resolution(const constantPoolHandle& this_cp, Kla
|
|||
if (k() != this_cp->pool_holder()) {
|
||||
// only print something if the classes are different
|
||||
if (source_file != NULL) {
|
||||
tty->print("RESOLVE %s %s %s:%d\n",
|
||||
log_info(classresolve)("%s %s %s:%d",
|
||||
this_cp->pool_holder()->external_name(),
|
||||
k->external_name(), source_file, line_number);
|
||||
} else {
|
||||
tty->print("RESOLVE %s %s\n",
|
||||
log_info(classresolve)("%s %s",
|
||||
this_cp->pool_holder()->external_name(),
|
||||
k->external_name());
|
||||
}
|
||||
|
@ -277,7 +277,7 @@ Klass* ConstantPool::klass_at_impl(const constantPoolHandle& this_cp, int which,
|
|||
ClassLoaderData* this_key = this_cp->pool_holder()->class_loader_data();
|
||||
this_key->record_dependency(k(), CHECK_NULL); // Can throw OOM
|
||||
|
||||
if (TraceClassResolution && !k->is_array_klass()) {
|
||||
if (log_is_enabled(Info, classresolve) && !k->is_array_klass()) {
|
||||
// skip resolving the constant pool so that this code gets
|
||||
// called the next time some bytecodes refer to this class.
|
||||
trace_class_resolution(this_cp, k);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue