8220095: Assertion failure when symlink (with different name) is used for lib/modules file

Removed confusing function ClassLoader::is_modules_image(char*)

Reviewed-by: lfoltan, ccheung
This commit is contained in:
Jiangli Zhou 2019-03-23 21:51:07 -07:00 committed by Ioi Lam
parent 26210b4566
commit 223e1c6e42
7 changed files with 111 additions and 15 deletions

View file

@ -3367,7 +3367,9 @@ void InstanceKlass::print_class_load_logging(ClassLoaderData* loader_data,
if (cfs != NULL) {
if (cfs->source() != NULL) {
if (module_name != NULL) {
if (ClassLoader::is_modules_image(cfs->source())) {
// When the boot loader created the stream, it didn't know the module name
// yet. Let's format it now.
if (cfs->from_boot_loader_modules_image()) {
info_stream.print(" source: jrt:/%s", module_name);
} else {
info_stream.print(" source: %s", cfs->source());