--- a/hotspot/src/share/vm/oops/constantPool.cpp Wed Dec 23 13:12:15 2015 +0300
+++ b/hotspot/src/share/vm/oops/constantPool.cpp Wed Dec 23 15:05:38 2015 -0500
@@ -204,11 +204,11 @@
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 @@
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);