--- a/src/hotspot/share/classfile/dictionary.cpp Fri May 17 10:48:02 2019 -0400
+++ b/src/hotspot/share/classfile/dictionary.cpp Fri May 17 08:29:55 2019 -0700
@@ -246,7 +246,7 @@
// Used to scan and relocate the classes during CDS archive dump.
void Dictionary::classes_do(MetaspaceClosure* it) {
- assert(DumpSharedSpaces, "dump-time only");
+ assert(DumpSharedSpaces || DynamicDumpSharedSpaces, "dump-time only");
for (int index = 0; index < table_size(); index++) {
for (DictionaryEntry* probe = bucket(index);
probe != NULL;
@@ -312,7 +312,6 @@
}
}
-
InstanceKlass* Dictionary::find_class(int index, unsigned int hash,
Symbol* name) {
assert_locked_or_safepoint(SystemDictionary_lock);