--- old/src/hotspot/share/classfile/systemDictionary.cpp 2018-08-24 13:29:56.987768741 -0400 +++ new/src/hotspot/share/classfile/systemDictionary.cpp 2018-08-24 13:29:55.571686991 -0400 @@ -1160,10 +1160,12 @@ #if INCLUDE_CDS void SystemDictionary::set_shared_dictionary(HashtableBucket* t, int length, int number_of_entries) { + assert(!DumpSharedSpaces, "Should not be called with DumpSharedSpaces"); assert(length == _shared_dictionary_size * sizeof(HashtableBucket), "bad shared dictionary size."); _shared_dictionary = new Dictionary(ClassLoaderData::the_null_class_loader_data(), - _shared_dictionary_size, t, number_of_entries); + _shared_dictionary_size, t, number_of_entries, + false /* explicitly set _resizable to false */); }