src/hotspot/share/classfile/systemDictionary.cpp
changeset 49931 840e26123940
parent 49818 e57e6addb978
child 50036 e0dbf14885b8
equal deleted inserted replaced
49930:3aaaa5370999 49931:840e26123940
  3057 
  3057 
  3058 // Combining platform and system loader dictionaries into boot loader dictionary.
  3058 // Combining platform and system loader dictionaries into boot loader dictionary.
  3059 // During run time, we only have one shared dictionary.
  3059 // During run time, we only have one shared dictionary.
  3060 void SystemDictionary::combine_shared_dictionaries() {
  3060 void SystemDictionary::combine_shared_dictionaries() {
  3061   assert(DumpSharedSpaces, "dump time only");
  3061   assert(DumpSharedSpaces, "dump time only");
  3062   // If AppCDS isn't enabled, we only dump the classes in the boot loader dictionary
  3062   Dictionary* master_dictionary = ClassLoaderData::the_null_class_loader_data()->dictionary();
  3063   // into the shared archive.
  3063   CombineDictionariesClosure cdc(master_dictionary);
  3064   if (UseAppCDS) {
  3064   ClassLoaderDataGraph::cld_do(&cdc);
  3065     Dictionary* master_dictionary = ClassLoaderData::the_null_class_loader_data()->dictionary();
       
  3066     CombineDictionariesClosure cdc(master_dictionary);
       
  3067     ClassLoaderDataGraph::cld_do(&cdc);
       
  3068   }
       
  3069 
  3065 
  3070   // These tables are no longer valid or necessary. Keeping them around will
  3066   // These tables are no longer valid or necessary. Keeping them around will
  3071   // cause SystemDictionary::verify() to fail. Let's empty them.
  3067   // cause SystemDictionary::verify() to fail. Let's empty them.
  3072   _placeholders        = new PlaceholderTable(_placeholder_table_size);
  3068   _placeholders        = new PlaceholderTable(_placeholder_table_size);
  3073   _loader_constraints  = new LoaderConstraintTable(_loader_constraint_size);
  3069   _loader_constraints  = new LoaderConstraintTable(_loader_constraint_size);