src/hotspot/share/classfile/dictionary.cpp
changeset 58447 319173c62caa
parent 58177 4932dce35882
child 58679 9c3209ff7550
child 59290 97d13893ec3c
equal deleted inserted replaced
58446:5c83830390ba 58447:319173c62caa
   244   }
   244   }
   245 }
   245 }
   246 
   246 
   247 // Used to scan and relocate the classes during CDS archive dump.
   247 // Used to scan and relocate the classes during CDS archive dump.
   248 void Dictionary::classes_do(MetaspaceClosure* it) {
   248 void Dictionary::classes_do(MetaspaceClosure* it) {
   249   assert(DumpSharedSpaces || DynamicDumpSharedSpaces, "dump-time only");
   249   Arguments::assert_is_dumping_archive();
   250   for (int index = 0; index < table_size(); index++) {
   250   for (int index = 0; index < table_size(); index++) {
   251     for (DictionaryEntry* probe = bucket(index);
   251     for (DictionaryEntry* probe = bucket(index);
   252                           probe != NULL;
   252                           probe != NULL;
   253                           probe = probe->next()) {
   253                           probe = probe->next()) {
   254       it->push(probe->klass_addr());
   254       it->push(probe->klass_addr());