8332786: When dumping static CDS archives, explicitly assert that we don't use a CDS archive

Reviewed-by: iklam, dholmes
This commit is contained in:
Thomas Stuefe 2024-07-04 05:44:44 +00:00
parent e01626cf09
commit 7b894bc4af

@ -510,6 +510,8 @@ char* VM_PopulateDumpSharedSpace::dump_read_only_tables() {
}
void VM_PopulateDumpSharedSpace::doit() {
guarantee(!CDSConfig::is_using_archive(), "We should not be using an archive when we dump");
DEBUG_ONLY(SystemDictionaryShared::NoClassLoadingMark nclm);
FileMapInfo::check_nonempty_dir_in_shared_path_table();