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

@ -6113,7 +6113,7 @@ void ClassFileParser::parse_stream(const ClassFileStream* const stream,
// For the boot and platform class loaders, skip classes that are not found in the
// java runtime image, such as those found in the --patch-module entries.
// These classes can't be loaded from the archive during runtime.
if (!ClassLoader::is_modules_image(stream->source()) && strncmp(stream->source(), "jrt:", 4) != 0) {
if (!stream->from_boot_loader_modules_image() && strncmp(stream->source(), "jrt:", 4) != 0) {
skip = true;
}