src/hotspot/share/classfile/dictionary.cpp
changeset 54927 1512d88b24c6
parent 54623 1126f0607c70
child 58177 4932dce35882
child 58678 9cf78a70fa4f
--- 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);