src/hotspot/share/memory/metaspaceShared.cpp
changeset 52300 9e29d8388514
parent 52062 8dbf1a13af49
child 52314 e53af5fa0dae
equal deleted inserted replaced
52299:17826b492ddd 52300:9e29d8388514
  1644       check_closure.reset();
  1644       check_closure.reset();
  1645       ClassLoaderDataGraph::unlocked_loaded_classes_do(&check_closure);
  1645       ClassLoaderDataGraph::unlocked_loaded_classes_do(&check_closure);
  1646     } while (check_closure.made_progress());
  1646     } while (check_closure.made_progress());
  1647 
  1647 
  1648     if (IgnoreUnverifiableClassesDuringDump) {
  1648     if (IgnoreUnverifiableClassesDuringDump) {
  1649       // This is useful when running JCK or SQE tests. You should not
  1649       // IgnoreUnverifiableClassesDuringDump is enabled by default.
  1650       // enable this when running real apps.
  1650       // Unverifiable classes will not be included in the CDS archive.
  1651       SystemDictionary::remove_classes_in_error_state();
  1651       SystemDictionary::remove_classes_in_error_state();
  1652     } else {
  1652     } else {
  1653       tty->print_cr("Please remove the unverifiable classes from your class list and try again");
  1653       vm_exit_during_cds_dumping("Please remove the unverifiable classes from your class list and try again");
  1654       exit(1);
       
  1655     }
  1654     }
  1656   }
  1655   }
  1657 }
  1656 }
  1658 
  1657 
  1659 void MetaspaceShared::prepare_for_dumping() {
  1658 void MetaspaceShared::prepare_for_dumping() {