src/hotspot/share/oops/cpCache.cpp
changeset 54927 1512d88b24c6
parent 54786 ebf733a324d4
child 55105 9ad765641e8f
child 58678 9cf78a70fa4f
--- a/src/hotspot/share/oops/cpCache.cpp	Fri May 17 10:48:02 2019 -0400
+++ b/src/hotspot/share/oops/cpCache.cpp	Fri May 17 08:29:55 2019 -0700
@@ -697,7 +697,7 @@
 }
 
 void ConstantPoolCache::walk_entries_for_initialization(bool check_only) {
-  assert(DumpSharedSpaces, "sanity");
+  assert(DumpSharedSpaces || DynamicDumpSharedSpaces, "sanity");
   // 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