src/hotspot/share/classfile/dictionary.cpp
changeset 54927 1512d88b24c6
parent 54623 1126f0607c70
child 58177 4932dce35882
child 58678 9cf78a70fa4f
equal deleted inserted replaced
54926:d4e7ccaf1445 54927:1512d88b24c6
   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, "dump-time only");
   249   assert(DumpSharedSpaces || DynamicDumpSharedSpaces, "dump-time only");
   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());
   309     return entry->instance_klass();
   309     return entry->instance_klass();
   310   } else {
   310   } else {
   311     return NULL;
   311     return NULL;
   312   }
   312   }
   313 }
   313 }
   314 
       
   315 
   314 
   316 InstanceKlass* Dictionary::find_class(int index, unsigned int hash,
   315 InstanceKlass* Dictionary::find_class(int index, unsigned int hash,
   317                                       Symbol* name) {
   316                                       Symbol* name) {
   318   assert_locked_or_safepoint(SystemDictionary_lock);
   317   assert_locked_or_safepoint(SystemDictionary_lock);
   319   assert (index == index_for(name), "incorrect index?");
   318   assert (index == index_for(name), "incorrect index?");