8155678: ClassLoader::initialize_module_loader_map should only be called when dumping CDS archive

Make ClassLoader::initialize_module_loader_map explicitly CDS dump time only.

Reviewed-by: ccheung, lfoltan
This commit is contained in:
Jiangli Zhou 2016-05-04 17:32:08 -04:00
parent 094416e1ec
commit 34fe707dad
4 changed files with 17 additions and 13 deletions

View file

@ -379,9 +379,9 @@ class ClassLoader: AllStatic {
static s2 module_to_classloader(const char* module_name);
static void initialize_module_loader_map(JImageFile* jimage);
#endif
static s2 classloader_type(Symbol* class_name, ClassPathEntry* e,
int classpath_index, TRAPS);
int classpath_index, TRAPS);
#endif
static void trace_class_path(const char* msg, const char* name = NULL);