mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 14:54:52 +02:00
8157490: JCK test vm/jni/DefineClass/dfcl001/dfcl00101m1/dfcl00101m1 crashes when run with -Xlog:classload=info
Null stream->source() no longer causes error with -Xlog:class+load Reviewed-by: lfoltan, coleenp
This commit is contained in:
parent
349599133d
commit
680e1a3a28
2 changed files with 6 additions and 10 deletions
|
@ -3004,7 +3004,11 @@ void InstanceKlass::print_loading_log(LogLevel::type type,
|
|||
if (cfs != NULL) {
|
||||
if (cfs->source() != NULL) {
|
||||
if (module_name != NULL) {
|
||||
log->print(" source: jrt:/%s", module_name);
|
||||
if (ClassLoader::is_jrt(cfs->source())) {
|
||||
log->print(" source: jrt:/%s", module_name);
|
||||
} else {
|
||||
log->print(" source: %s", cfs->source());
|
||||
}
|
||||
} else {
|
||||
log->print(" source: %s", cfs->source());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue