src/hotspot/share/classfile/dictionary.cpp
changeset 58447 319173c62caa
parent 58177 4932dce35882
child 58679 9c3209ff7550
child 59290 97d13893ec3c
--- a/src/hotspot/share/classfile/dictionary.cpp	Wed Oct 02 13:57:03 2019 -0400
+++ b/src/hotspot/share/classfile/dictionary.cpp	Wed Oct 02 16:55:08 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 || DynamicDumpSharedSpaces, "dump-time only");
+  Arguments::assert_is_dumping_archive();
   for (int index = 0; index < table_size(); index++) {
     for (DictionaryEntry* probe = bucket(index);
                           probe != NULL;