--- old/src/hotspot/share/classfile/classLoader.cpp 2019-10-08 18:52:49.000000000 -0700 +++ new/src/hotspot/share/classfile/classLoader.cpp 2019-10-08 18:52:48.000000000 -0700 @@ -1320,8 +1320,12 @@ name, loader_data, protection_domain, - NULL, // unsafe_anonymous_host - NULL, // cp_patches + NULL, // unsafe_anonymous_host + NULL, // cp_patches + false, // is_hidden + false, // can_access_vm_annotations + NULL, // dynamic_nest_host + Handle(), // classData THREAD); if (HAS_PENDING_EXCEPTION) { if (DumpSharedSpaces) { @@ -1363,8 +1367,8 @@ Arguments::assert_is_dumping_archive(); assert(stream != NULL, "sanity"); - if (ik->is_unsafe_anonymous()) { - // We do not archive unsafe anonymous classes. + if (ik->is_hidden() || ik->is_unsafe_anonymous()) { + // We do not archive hidden or unsafe anonymous classes. return; }