src/hotspot/share/memory/universe.cpp
changeset 48092 72855b7d10ac
parent 47913 cde4a65ba47d
child 48153 cfa2c43e58c2
equal deleted inserted replaced
48091:b936dd383b25 48092:72855b7d10ac
   685     return status;
   685     return status;
   686   }
   686   }
   687 
   687 
   688   Metaspace::global_initialize();
   688   Metaspace::global_initialize();
   689 
   689 
       
   690   // Initialize performance counters for metaspaces
       
   691   MetaspaceCounters::initialize_performance_counters();
       
   692   CompressedClassSpaceCounters::initialize_performance_counters();
       
   693 
   690   AOTLoader::universe_init();
   694   AOTLoader::universe_init();
   691 
   695 
   692   // Checks 'AfterMemoryInit' constraints.
   696   // Checks 'AfterMemoryInit' constraints.
   693   if (!CommandLineFlagConstraintList::check_constraints(CommandLineFlagConstraint::AfterMemoryInit)) {
   697   if (!CommandLineFlagConstraintList::check_constraints(CommandLineFlagConstraint::AfterMemoryInit)) {
   694     return JNI_EINVAL;
   698     return JNI_EINVAL;
  1082     Universe::update_heap_info_at_gc();
  1086     Universe::update_heap_info_at_gc();
  1083   }
  1087   }
  1084 
  1088 
  1085   // ("weak") refs processing infrastructure initialization
  1089   // ("weak") refs processing infrastructure initialization
  1086   Universe::heap()->post_initialize();
  1090   Universe::heap()->post_initialize();
  1087 
       
  1088   // Initialize performance counters for metaspaces
       
  1089   MetaspaceCounters::initialize_performance_counters();
       
  1090   CompressedClassSpaceCounters::initialize_performance_counters();
       
  1091 
  1091 
  1092   MemoryService::add_metaspace_memory_pools();
  1092   MemoryService::add_metaspace_memory_pools();
  1093 
  1093 
  1094   MemoryService::set_universe_heap(Universe::heap());
  1094   MemoryService::set_universe_heap(Universe::heap());
  1095 #if INCLUDE_CDS
  1095 #if INCLUDE_CDS