--- 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;