diff -r cdffba164671 -r 3e5d28e6de32 src/hotspot/share/classfile/systemDictionaryShared.cpp --- a/src/hotspot/share/classfile/systemDictionaryShared.cpp Mon Aug 20 10:04:00 2018 +0200 +++ b/src/hotspot/share/classfile/systemDictionaryShared.cpp Mon Aug 20 08:25:57 2018 -0400 @@ -755,11 +755,11 @@ Symbol* from_name, bool from_field_is_protected, bool from_is_array, bool from_is_object) { assert(DumpSharedSpaces, "called at dump time only"); - // Skip anonymous classes, which are not archived as they are not in - // dictionary (see assert_no_anonymoys_classes_in_dictionaries() in + // Skip unsafe anonymous classes, which are not archived as they are not in + // dictionary (see assert_no_unsafe_anonymous_classes_in_dictionaries() in // VM_PopulateDumpSharedSpace::doit()). - if (k->class_loader_data()->is_anonymous()) { - return true; // anonymous classes are not archived, skip + if (k->class_loader_data()->is_unsafe_anonymous()) { + return true; // unsafe anonymous classes are not archived, skip } SharedDictionaryEntry* entry = ((SharedDictionary*)(k->class_loader_data()->dictionary()))->find_entry_for(k);