mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +02:00
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:
parent
094416e1ec
commit
34fe707dad
4 changed files with 17 additions and 13 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue