< prev index next >

src/share/vm/classfile/classFileParser.cpp

Print this page
rev 13180 : imported patch 8181917-refactor-ul-logstream

*** 36,45 **** --- 36,46 ---- #include "classfile/verificationType.hpp" #include "classfile/verifier.hpp" #include "classfile/vmSymbols.hpp" #include "gc/shared/gcLocker.hpp" #include "logging/log.hpp" + #include "logging/logStream.hpp" #include "memory/allocation.hpp" #include "memory/metadataFactory.hpp" #include "memory/oopFactory.hpp" #include "memory/resourceArea.hpp" #include "memory/universe.inline.hpp"
*** 5910,5927 **** // Verification prevents us from creating names with dots in them, this // asserts that that's the case. assert(is_internal_format(_class_name), "external class name format used internally"); if (!is_internal()) { ! if (log_is_enabled(Debug, class, preorder)){ ResourceMark rm(THREAD); ! outputStream* log = Log(class, preorder)::debug_stream(); ! log->print("%s", _class_name->as_klass_external_name()); if (stream->source() != NULL) { ! log->print(" source: %s", stream->source()); } ! log->cr(); } #if INCLUDE_CDS if (DumpLoadedClassList != NULL && stream->source() != NULL && classlist_file->is_open()) { // Only dump the classes that can be stored into CDS archive. --- 5911,5929 ---- // Verification prevents us from creating names with dots in them, this // asserts that that's the case. assert(is_internal_format(_class_name), "external class name format used internally"); if (!is_internal()) { ! LogTarget(Debug, class, preorder) lt; ! if (lt.is_enabled()){ ResourceMark rm(THREAD); ! LogStream ls(lt); ! ls.print("%s", _class_name->as_klass_external_name()); if (stream->source() != NULL) { ! ls.print(" source: %s", stream->source()); } ! ls.cr(); } #if INCLUDE_CDS if (DumpLoadedClassList != NULL && stream->source() != NULL && classlist_file->is_open()) { // Only dump the classes that can be stored into CDS archive.
< prev index next >