src/hotspot/share/classfile/compactHashtable.cpp
changeset 58447 319173c62caa
parent 54927 1512d88b24c6
--- a/src/hotspot/share/classfile/compactHashtable.cpp	Wed Oct 02 13:57:03 2019 -0400
+++ b/src/hotspot/share/classfile/compactHashtable.cpp	Wed Oct 02 16:55:08 2019 -0700
@@ -42,7 +42,7 @@
 //
 CompactHashtableWriter::CompactHashtableWriter(int num_entries,
                                                CompactHashtableStats* stats) {
-  assert(DumpSharedSpaces || DynamicDumpSharedSpaces, "dump-time only");
+  Arguments::assert_is_dumping_archive();
   assert(num_entries >= 0, "sanity");
   _num_buckets = calculate_num_buckets(num_entries);
   assert(_num_buckets > 0, "no buckets");