src/share/vm/prims/jvmtiEnv.cpp

Print this page
rev 9245 : [mq]: class_loading_log

*** 27,36 **** --- 27,37 ---- #include "classfile/systemDictionary.hpp" #include "classfile/vmSymbols.hpp" #include "interpreter/bytecodeStream.hpp" #include "interpreter/interpreter.hpp" #include "jvmtifiles/jvmtiEnv.hpp" + #include "logging/log.hpp" #include "memory/resourceArea.hpp" #include "memory/universe.inline.hpp" #include "oops/instanceKlass.hpp" #include "oops/objArrayOop.inline.hpp" #include "oops/oop.inline.hpp"
*** 473,482 **** --- 474,487 ---- // add the jar file to the bootclasspath if (TraceClassLoading) { tty->print_cr("[Opened %s]", zip_entry->name()); } + if (log_is_enabled(Debug, classload)) { + outputStream* log = LogHandle(classload)::debug_stream(); + log->print_cr("[Opened %s]", zip_entry->name()); + } ClassLoaderExt::append_boot_classpath(zip_entry); return JVMTI_ERROR_NONE; } else { return JVMTI_ERROR_WRONG_PHASE; }