< prev index next >
src/share/vm/classfile/dictionary.cpp
Print this page
@@ -283,20 +283,19 @@
}
}
// Used to scan and relocate the classes during CDS archive dump.
void Dictionary::classes_do(MetaspaceClosure* it) {
+ assert(DumpSharedSpaces, "dump-time only");
for (int index = 0; index < table_size(); index++) {
for (DictionaryEntry* probe = bucket(index);
probe != NULL;
probe = probe->next()) {
it->push(probe->klass_addr());
- if (DumpSharedSpaces) {
((SharedDictionaryEntry*)probe)->metaspace_pointers_do(it);
}
}
- }
}
void Dictionary::oops_do(OopClosure* f) {
// Only the protection domain oops contain references into the heap. Iterate
< prev index next >