--- old/src/hotspot/share/memory/filemap.cpp 2019-10-01 15:26:50.320456153 -0700 +++ new/src/hotspot/share/memory/filemap.cpp 2019-10-01 15:26:49.796436627 -0700 @@ -263,7 +263,7 @@ void SharedClassPathEntry::init(bool is_modules_image, ClassPathEntry* cpe, TRAPS) { - assert(DumpSharedSpaces || DynamicDumpSharedSpaces, "dump time only"); + assert(Arguments::is_dumping_archive(), "dump time only"); _timestamp = 0; _filesize = 0; _from_class_path_attr = false; @@ -397,7 +397,7 @@ } void FileMapInfo::allocate_shared_path_table() { - assert(DumpSharedSpaces || DynamicDumpSharedSpaces, "Sanity"); + assert(Arguments::is_dumping_archive(), "Sanity"); EXCEPTION_MARK; // The following calls should never throw, but would exit VM on error. ClassLoaderData* loader_data = ClassLoaderData::the_null_class_loader_data(); @@ -444,7 +444,7 @@ } void FileMapInfo::check_nonempty_dir_in_shared_path_table() { - assert(DumpSharedSpaces || DynamicDumpSharedSpaces, "dump time only"); + assert(Arguments::is_dumping_archive(), "dump time only"); bool has_nonempty_dir = false; @@ -471,7 +471,7 @@ } void FileMapInfo::record_non_existent_class_path_entry(const char* path) { - assert(DumpSharedSpaces || DynamicDumpSharedSpaces, "dump time only"); + assert(Arguments::is_dumping_archive(), "dump time only"); log_info(class, path)("non-existent Class-Path entry %s", path); if (_non_existent_class_paths == NULL) { _non_existent_class_paths = new (ResourceObj::C_HEAP, mtInternal)GrowableArray(10, true); @@ -480,7 +480,7 @@ } int FileMapInfo::num_non_existent_class_paths() { - assert(DumpSharedSpaces || DynamicDumpSharedSpaces, "dump time only"); + assert(Arguments::is_dumping_archive(), "dump time only"); if (_non_existent_class_paths != NULL) { return _non_existent_class_paths->length(); } else { @@ -1150,7 +1150,7 @@ void FileMapInfo::write_region(int region, char* base, size_t size, bool read_only, bool allow_exec) { - assert(DumpSharedSpaces || DynamicDumpSharedSpaces, "Dump time only"); + assert(Arguments::is_dumping_archive(), "Dump time only"); FileMapRegion* si = space_at(region); char* target_base = base;