src/share/vm/classfile/systemDictionary.cpp

Print this page
rev 9245 : [mq]: class_loading_log

*** 35,44 **** --- 35,45 ---- #include "code/codeCache.hpp" #include "compiler/compileBroker.hpp" #include "gc/shared/gcLocker.hpp" #include "interpreter/bytecodeStream.hpp" #include "interpreter/interpreter.hpp" + #include "logging/log.hpp" #include "memory/filemap.hpp" #include "memory/oopFactory.hpp" #include "oops/instanceKlass.hpp" #include "oops/instanceRefKlass.hpp" #include "oops/klass.inline.hpp"
*** 1245,1254 **** --- 1246,1262 ---- tty->print(" by %s", loader_data->loader_name()); } tty->print_cr("]"); } + if (log_is_enabled(Debug, classload)) { + ik()->print_loading_log(LogLevel::Debug, loader_data, NULL); + } + if (log_is_enabled(Trace, classload)) { + ik()->print_loading_log(LogLevel::Trace, loader_data, NULL); + } + if (DumpLoadedClassList != NULL && classlist_file->is_open()) { // Only dump the classes that can be stored into CDS archive if (SystemDictionaryShared::is_sharing_possible(loader_data)) { ResourceMark rm(THREAD); classlist_file->print_cr("%s", ik->name()->as_C_string());