equal
deleted
inserted
replaced
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()); |