< prev index next >

src/hotspot/share/classfile/classLoader.cpp

Print this page

        

@@ -1380,12 +1380,16 @@
 
   InstanceKlass* result = KlassFactory::create_from_stream(stream,
                                                            name,
                                                            loader_data,
                                                            protection_domain,
-                                                           NULL, // unsafe_anonymous_host
-                                                           NULL, // cp_patches
+                                                           NULL,  // unsafe_anonymous_host
+                                                           NULL,  // cp_patches
+                                                           false, // is_nonfindable
+                                                           false, // can_access_vm_annotations
+                                                           NULL,  // dynamic_nest_host
+                                                           Handle(), // classData
                                                            THREAD);
   if (HAS_PENDING_EXCEPTION) {
     if (DumpSharedSpaces) {
       tty->print_cr("Preload Error: Failed to load %s", class_name);
     }

@@ -1423,12 +1427,12 @@
 // by the builtin loaders at dump time.
 void ClassLoader::record_result(InstanceKlass* ik, const ClassFileStream* stream, TRAPS) {
   assert(DumpSharedSpaces, "sanity");
   assert(stream != NULL, "sanity");
 
-  if (ik->is_unsafe_anonymous()) {
-    // We do not archive unsafe anonymous classes.
+  if (ik->is_nonfindable() || ik->is_unsafe_anonymous()) {
+    // We do not archive nonfindable or unsafe anonymous classes.
     return;
   }
 
   oop loader = ik->class_loader();
   char* src = (char*)stream->source();
< prev index next >