src/hotspot/share/oops/cpCache.cpp
changeset 58447 319173c62caa
parent 55105 9ad765641e8f
child 58679 9c3209ff7550
child 59056 15936b142f86
--- a/src/hotspot/share/oops/cpCache.cpp	Wed Oct 02 13:57:03 2019 -0400
+++ b/src/hotspot/share/oops/cpCache.cpp	Wed Oct 02 16:55:08 2019 -0700
@@ -708,7 +708,7 @@
 }
 
 void ConstantPoolCache::walk_entries_for_initialization(bool check_only) {
-  assert(DumpSharedSpaces || DynamicDumpSharedSpaces, "sanity");
+  Arguments::assert_is_dumping_archive();
   // When dumping the archive, we want to clean up the ConstantPoolCache
   // to remove any effect of linking due to the execution of Java code --
   // each ConstantPoolCacheEntry will have the same contents as if