--- old/src/hotspot/share/classfile/dictionary.cpp 2019-10-01 15:26:43.523202882 -0700 +++ new/src/hotspot/share/classfile/dictionary.cpp 2019-10-01 15:26:43.000183394 -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"); + assert(Arguments::is_dumping_archive(), "dump-time only"); for (int index = 0; index < table_size(); index++) { for (DictionaryEntry* probe = bucket(index); probe != NULL;