mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
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:
parent
26210b4566
commit
223e1c6e42
7 changed files with 111 additions and 15 deletions
|
@ -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());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue