--- old/src/hotspot/share/classfile/symbolTable.cpp 2019-10-01 15:26:45.785287169 -0700 +++ new/src/hotspot/share/classfile/symbolTable.cpp 2019-10-01 15:26:45.263267718 -0700 @@ -220,7 +220,7 @@ assert (len <= Symbol::max_length(), "should be checked by caller"); Symbol* sym; - if (DumpSharedSpaces || DynamicDumpSharedSpaces) { + if (Arguments::is_dumping_archive()) { c_heap = false; } if (c_heap) { @@ -283,7 +283,7 @@ }; void SymbolTable::metaspace_pointers_do(MetaspaceClosure* it) { - assert(DumpSharedSpaces || DynamicDumpSharedSpaces, "called only during dump time"); + assert(Arguments::is_dumping_archive(), "called only during dump time"); MetaspacePointersDo mpd(it); _local_table->do_safepoint_scan(mpd); }