mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8149995: TraceClassLoadingPreorder has been converted to Unified Logging
TraceClassLoadingPreorder has been converted to Unified Logging. Logging alias table now has extra columns to support multi-tag configurations. Reviewed-by: iklam, coleenp
This commit is contained in:
parent
edd3f7ca77
commit
5f9883ad73
6 changed files with 30 additions and 26 deletions
|
@ -5684,15 +5684,16 @@ void ClassFileParser::parse_stream(const ClassFileStream* const stream,
|
|||
}
|
||||
|
||||
if (!is_internal()) {
|
||||
if (TraceClassLoadingPreorder) {
|
||||
tty->print("[Loading %s",
|
||||
_class_name->as_klass_external_name());
|
||||
|
||||
if (log_is_enabled(Debug, classload, preorder)){
|
||||
ResourceMark rm(THREAD);
|
||||
outputStream* log = LogHandle(classload, preorder)::debug_stream();
|
||||
log->print("%s", _class_name->as_klass_external_name());
|
||||
if (stream->source() != NULL) {
|
||||
tty->print(" from %s", stream->source());
|
||||
log->print(" source: %s", stream->source());
|
||||
}
|
||||
tty->print_cr("]");
|
||||
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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue