< prev index next >

src/hotspot/share/classfile/classLoader.cpp

Print this page

        

*** 1380,1391 **** InstanceKlass* result = KlassFactory::create_from_stream(stream, name, loader_data, protection_domain, ! NULL, // unsafe_anonymous_host ! NULL, // cp_patches THREAD); if (HAS_PENDING_EXCEPTION) { if (DumpSharedSpaces) { tty->print_cr("Preload Error: Failed to load %s", class_name); } --- 1380,1395 ---- InstanceKlass* result = KlassFactory::create_from_stream(stream, name, loader_data, protection_domain, ! 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,1434 **** // 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. return; } oop loader = ik->class_loader(); char* src = (char*)stream->source(); --- 1427,1438 ---- // 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_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 >