hotspot/src/share/vm/classfile/systemDictionary.cpp
changeset 35917 463d67f86eaa
parent 35492 c8c0273e6b91
child 35918 1e48ea715a0b
--- a/hotspot/src/share/vm/classfile/systemDictionary.cpp	Tue Feb 02 14:54:05 2016 +0000
+++ b/hotspot/src/share/vm/classfile/systemDictionary.cpp	Wed Feb 03 11:40:30 2016 -0500
@@ -1302,14 +1302,13 @@
       ik->restore_unshareable_info(loader_data, protection_domain, CHECK_(nh));
     }
 
-    if (TraceClassLoading) {
-      ResourceMark rm;
-      tty->print("[Loaded %s", ik->external_name());
-      tty->print(" from shared objects file");
-      if (class_loader.not_null()) {
-        tty->print(" by %s", loader_data->loader_name());
-      }
-      tty->print_cr("]");
+    if (log_is_enabled(Info, classload)) {
+      ik()->print_loading_log(LogLevel::Info, loader_data, NULL);
+    }
+    // No 'else' here as logging levels are not mutually exclusive
+
+    if (log_is_enabled(Debug, classload)) {
+      ik()->print_loading_log(LogLevel::Debug, loader_data, NULL);
     }
 
     if (DumpLoadedClassList != NULL && classlist_file->is_open()) {