--- old/src/hotspot/share/classfile/systemDictionaryShared.cpp 2019-10-01 15:26:46.911329126 -0700 +++ new/src/hotspot/share/classfile/systemDictionaryShared.cpp 2019-10-01 15:26:46.391309750 -0700 @@ -1029,7 +1029,7 @@ } void SystemDictionaryShared::set_shared_class_misc_info(InstanceKlass* k, ClassFileStream* cfs) { - assert(DumpSharedSpaces || DynamicDumpSharedSpaces, "only when dumping"); + assert(Arguments::is_dumping_archive(), "only when dumping"); assert(!is_builtin(k), "must be unregistered class"); DumpTimeSharedClassInfo* info = find_or_allocate_info_for(k); info->_clsfile_size = cfs->length(); @@ -1185,7 +1185,7 @@ bool SystemDictionaryShared::is_excluded_class(InstanceKlass* k) { assert(_no_class_loading_should_happen, "sanity"); - assert(DumpSharedSpaces || DynamicDumpSharedSpaces, "only when dumping"); + assert(Arguments::is_dumping_archive(), "only when dumping"); return find_or_allocate_info_for(k)->is_excluded(); } @@ -1209,7 +1209,7 @@ bool SystemDictionaryShared::add_verification_constraint(InstanceKlass* k, Symbol* name, Symbol* from_name, bool from_field_is_protected, bool from_is_array, bool from_is_object) { - assert(DumpSharedSpaces || DynamicDumpSharedSpaces, "called at dump time only"); + assert(Arguments::is_dumping_archive(), "called at dump time only"); DumpTimeSharedClassInfo* info = find_or_allocate_info_for(k); info->add_verification_constraint(k, name, from_name, from_field_is_protected, from_is_array, from_is_object);