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

@ -321,7 +321,7 @@ class InstanceKlass: public Klass {
return (_misc_flags & _misc_is_shared_app_class) != 0;
}
void set_class_loader_type(jshort loader_type) {
void set_class_loader_type(s2 loader_type) {
assert(( _misc_flags & loader_type_bits()) == 0,
"Should only be called once for each class.");
switch (loader_type) {