src/hotspot/share/memory/metaspaceShared.cpp
changeset 49739 00805b129186
parent 49594 898ef81cbc0e
child 49769 b8c9bec06921
equal deleted inserted replaced
49738:a7bc87a63dd8 49739:00805b129186
  1617 }
  1617 }
  1618 
  1618 
  1619 void MetaspaceShared::prepare_for_dumping() {
  1619 void MetaspaceShared::prepare_for_dumping() {
  1620   Arguments::check_unsupported_dumping_properties();
  1620   Arguments::check_unsupported_dumping_properties();
  1621   ClassLoader::initialize_shared_path();
  1621   ClassLoader::initialize_shared_path();
  1622   FileMapInfo::allocate_classpath_entry_table();
       
  1623 }
  1622 }
  1624 
  1623 
  1625 // Preload classes from a list, populate the shared spaces and dump to a
  1624 // Preload classes from a list, populate the shared spaces and dump to a
  1626 // file.
  1625 // file.
  1627 void MetaspaceShared::preload_and_dump(TRAPS) {
  1626 void MetaspaceShared::preload_and_dump(TRAPS) {
  1999       (rw_base = mapinfo->map_region(rw, &rw_top)) != NULL &&
  1998       (rw_base = mapinfo->map_region(rw, &rw_top)) != NULL &&
  2000       (ro_base = mapinfo->map_region(ro, &ro_top)) != NULL &&
  1999       (ro_base = mapinfo->map_region(ro, &ro_top)) != NULL &&
  2001       (md_base = mapinfo->map_region(md, &md_top)) != NULL &&
  2000       (md_base = mapinfo->map_region(md, &md_top)) != NULL &&
  2002       (od_base = mapinfo->map_region(od, &od_top)) != NULL &&
  2001       (od_base = mapinfo->map_region(od, &od_top)) != NULL &&
  2003       (image_alignment == (size_t)os::vm_allocation_granularity()) &&
  2002       (image_alignment == (size_t)os::vm_allocation_granularity()) &&
  2004       mapinfo->validate_classpath_entry_table()) {
  2003       mapinfo->validate_shared_path_table()) {
  2005     // Success -- set up MetaspaceObj::_shared_metaspace_{base,top} for
  2004     // Success -- set up MetaspaceObj::_shared_metaspace_{base,top} for
  2006     // fast checking in MetaspaceShared::is_in_shared_metaspace() and
  2005     // fast checking in MetaspaceShared::is_in_shared_metaspace() and
  2007     // MetaspaceObj::is_shared().
  2006     // MetaspaceObj::is_shared().
  2008     //
  2007     //
  2009     // We require that mc->rw->ro->md->od to be laid out consecutively, with no
  2008     // We require that mc->rw->ro->md->od to be laid out consecutively, with no