--- old/src/hotspot/share/classfile/classLoader.cpp 2019-03-13 08:49:07.151245200 -0700 +++ new/src/hotspot/share/classfile/classLoader.cpp 2019-03-13 08:49:06.879241857 -0700 @@ -139,6 +139,7 @@ ClassPathEntry* ClassLoader::_jrt_entry = NULL; ClassPathEntry* ClassLoader::_first_append_entry = NULL; ClassPathEntry* ClassLoader::_last_append_entry = NULL; +const char* ClassLoader::_modules_image_identity = MODULES_IMAGE_NAME; #if INCLUDE_CDS ClassPathEntry* ClassLoader::_app_classpath_entries = NULL; ClassPathEntry* ClassLoader::_last_app_classpath_entry = NULL; @@ -736,6 +737,8 @@ // Check for a jimage if (Arguments::has_jimage()) { + _modules_image_identity = os::strdup(new_entry->name()); + assert(_jrt_entry == NULL, "should not setup bootstrap class search path twice"); assert(new_entry != NULL && new_entry->is_modules_image(), "No java runtime image present"); _jrt_entry = new_entry; @@ -846,7 +849,7 @@ } } } - log_info(class, path)("opened: %s", path); + log_info(class, path)("opened: %s (real path: %s)", path, canonical_path); log_info(class, load)("opened: %s", path); } else { // Directory