src/share/vm/classfile/classFileParser.cpp
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File classload.01 Cdiff src/share/vm/classfile/classFileParser.cpp

src/share/vm/classfile/classFileParser.cpp

Print this page

        

*** 32,41 **** --- 32,42 ---- #include "classfile/systemDictionary.hpp" #include "classfile/verificationType.hpp" #include "classfile/verifier.hpp" #include "classfile/vmSymbols.hpp" #include "gc/shared/gcLocker.hpp" + #include "logging/log.hpp" #include "memory/allocation.hpp" #include "memory/metadataFactory.hpp" #include "memory/oopFactory.hpp" #include "memory/resourceArea.hpp" #include "memory/universe.inline.hpp"
*** 5345,5378 **** record_defined_class_dependencies(ik, CHECK); ClassLoadingService::notify_class_loaded(ik, false /* not shared class */); if (!is_internal()) { ! if (TraceClassLoading) { ! ResourceMark rm; ! // print in a single call to reduce interleaving of output ! if (_stream->source() != NULL) { ! tty->print("[Loaded %s from %s]\n", ! ik->external_name(), ! _stream->source()); ! } else if (_loader_data->class_loader() == NULL) { ! const Klass* const caller = ! THREAD->is_Java_thread() ! ? ((JavaThread*)THREAD)->security_get_caller_class(1) ! : NULL; ! // caller can be NULL, for example, during a JVMTI VM_Init hook ! if (caller != NULL) { ! tty->print("[Loaded %s by instance of %s]\n", ! ik->external_name(), ! caller->external_name()); ! } else { ! tty->print("[Loaded %s]\n", ik->external_name()); ! } ! } else { ! tty->print("[Loaded %s from %s]\n", ik->external_name(), ! _loader_data->class_loader()->klass()->external_name()); } } if (log_is_enabled(Info, classresolve)) { ResourceMark rm; // print out the superclass. --- 5346,5360 ---- record_defined_class_dependencies(ik, CHECK); ClassLoadingService::notify_class_loaded(ik, false /* not shared class */); if (!is_internal()) { ! if (log_is_enabled(Info, classload)) { ! ik->print_loading_log(LogLevel::Info, _loader_data, _stream); } + if (log_is_enabled(Debug, classload)) { + ik->print_loading_log(LogLevel::Debug, _loader_data, _stream); } if (log_is_enabled(Info, classresolve)) { ResourceMark rm; // print out the superclass.
src/share/vm/classfile/classFileParser.cpp
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File