Skip to content

Commit 7b894bc

Browse files
committed
8332786: When dumping static CDS archives, explicitly assert that we don't use a CDS archive
Reviewed-by: iklam, dholmes
1 parent e01626c commit 7b894bc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/hotspot/share/cds/metaspaceShared.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -510,6 +510,8 @@ char* VM_PopulateDumpSharedSpace::dump_read_only_tables() {
510510
}
511511

512512
void VM_PopulateDumpSharedSpace::doit() {
513+
guarantee(!CDSConfig::is_using_archive(), "We should not be using an archive when we dump");
514+
513515
DEBUG_ONLY(SystemDictionaryShared::NoClassLoadingMark nclm);
514516

515517
FileMapInfo::check_nonempty_dir_in_shared_path_table();

0 commit comments

Comments
 (0)