--- old/src/hotspot/share/memory/universe.cpp 2019-10-01 15:26:52.668543644 -0700 +++ new/src/hotspot/share/memory/universe.cpp 2019-10-01 15:26:52.141524007 -0700 @@ -710,7 +710,7 @@ } #if INCLUDE_CDS - if (DumpSharedSpaces || DynamicDumpSharedSpaces) { + if (Arguments::is_dumping_archive()) { MetaspaceShared::prepare_for_dumping(); } #endif