@@ -708,11 +708,11 @@ SymbolTable::create_table(); StringTable::create_table(); } #if INCLUDE_CDS - if (DumpSharedSpaces || DynamicDumpSharedSpaces) { + if (Arguments::is_dumping_archive()) { MetaspaceShared::prepare_for_dumping(); } #endif if (strlen(VerifySubSet) > 0) {