--- 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