< prev index next >

src/hotspot/share/memory/metaspaceShared.cpp

Print this page

        

*** 452,466 **** } } class CollectClassesClosure : public KlassClosure { void do_klass(Klass* k) { - if (!UseAppCDS && !k->class_loader_data()->is_the_null_class_loader_data()) { - // AppCDS is not enabled. Let's omit non-boot classes. - return; - } - if (!(k->is_instance_klass() && InstanceKlass::cast(k)->is_in_error_state())) { if (k->is_instance_klass() && InstanceKlass::cast(k)->signers() != NULL) { // Mark any class with signers and don't add to the _global_klass_objects k->set_has_signer_and_not_archived(); } else { --- 452,461 ----
*** 1325,1334 **** --- 1320,1331 ---- } void VM_PopulateDumpSharedSpace::doit() { Thread* THREAD = VMThread::vm_thread(); + FileMapInfo::check_nonempty_dir_in_shared_path_table(); + NOT_PRODUCT(SystemDictionary::verify();) // The following guarantee is meant to ensure that no loader constraints // exist yet, since the constraints table is not shared. This becomes // more important now that we don't re-initialize vtables/itables for // shared classes at runtime, where constraints were previously created.
< prev index next >