hotspot/src/share/vm/classfile/systemDictionary.cpp
changeset 26583 2ef7b85da46b
parent 26580 8cca7fbe77b8
parent 26419 25abc4a3285c
child 26585 2048b8d90c91
equal deleted inserted replaced
26582:b17d77706e6f 26583:2ef7b85da46b
  1241         tty->print(" by %s", loader_data->loader_name());
  1241         tty->print(" by %s", loader_data->loader_name());
  1242       }
  1242       }
  1243       tty->print_cr("]");
  1243       tty->print_cr("]");
  1244     }
  1244     }
  1245 
  1245 
  1246 #if INCLUDE_CDS
       
  1247     if (DumpLoadedClassList != NULL && classlist_file->is_open()) {
  1246     if (DumpLoadedClassList != NULL && classlist_file->is_open()) {
  1248       // Only dump the classes that can be stored into CDS archive
  1247       // Only dump the classes that can be stored into CDS archive
  1249       if (SystemDictionaryShared::is_sharing_possible(loader_data)) {
  1248       if (SystemDictionaryShared::is_sharing_possible(loader_data)) {
  1250         ResourceMark rm(THREAD);
  1249         ResourceMark rm(THREAD);
  1251         classlist_file->print_cr("%s", ik->name()->as_C_string());
  1250         classlist_file->print_cr("%s", ik->name()->as_C_string());
  1252         classlist_file->flush();
  1251         classlist_file->flush();
  1253       }
  1252       }
  1254     }
  1253     }
  1255 #endif
       
  1256 
  1254 
  1257     // notify a class loaded from shared object
  1255     // notify a class loaded from shared object
  1258     ClassLoadingService::notify_class_loaded(InstanceKlass::cast(ik()),
  1256     ClassLoadingService::notify_class_loaded(InstanceKlass::cast(ik()),
  1259                                              true /* shared class */);
  1257                                              true /* shared class */);
  1260   }
  1258   }
  1261   return ik;
  1259   return ik;
  1262 }
  1260 }
  1263 #endif
  1261 #endif // INCLUDE_CDS
  1264 
  1262 
  1265 instanceKlassHandle SystemDictionary::load_instance_class(Symbol* class_name, Handle class_loader, TRAPS) {
  1263 instanceKlassHandle SystemDictionary::load_instance_class(Symbol* class_name, Handle class_loader, TRAPS) {
  1266   instanceKlassHandle nh = instanceKlassHandle(); // null Handle
  1264   instanceKlassHandle nh = instanceKlassHandle(); // null Handle
  1267   if (class_loader.is_null()) {
  1265   if (class_loader.is_null()) {
  1268 
  1266