8193332: MetaspaceShared::check_shared_class_loader_type is not used during archive creation

Reviewed-by: lfoltan, jiangli
This commit is contained in:
Ioi Lam 2018-05-21 21:27:12 -07:00
parent 03096d9b75
commit f9742fc0a6
6 changed files with 29 additions and 16 deletions

View file

@ -326,6 +326,10 @@ class InstanceKlass: public Klass {
return (_misc_flags & _misc_is_shared_app_class) != 0;
}
void clear_class_loader_type() {
_misc_flags &= ~loader_type_bits();
}
void set_class_loader_type(s2 loader_type) {
switch (loader_type) {
case ClassLoader::BOOT_LOADER: