src/hotspot/share/memory/universe.cpp
changeset 48092 72855b7d10ac
parent 47913 cde4a65ba47d
child 48153 cfa2c43e58c2
--- a/src/hotspot/share/memory/universe.cpp	Mon Nov 13 15:28:17 2017 +0100
+++ b/src/hotspot/share/memory/universe.cpp	Thu Nov 16 14:06:44 2017 -0500
@@ -687,6 +687,10 @@
 
   Metaspace::global_initialize();
 
+  // Initialize performance counters for metaspaces
+  MetaspaceCounters::initialize_performance_counters();
+  CompressedClassSpaceCounters::initialize_performance_counters();
+
   AOTLoader::universe_init();
 
   // Checks 'AfterMemoryInit' constraints.
@@ -1085,10 +1089,6 @@
   // ("weak") refs processing infrastructure initialization
   Universe::heap()->post_initialize();
 
-  // Initialize performance counters for metaspaces
-  MetaspaceCounters::initialize_performance_counters();
-  CompressedClassSpaceCounters::initialize_performance_counters();
-
   MemoryService::add_metaspace_memory_pools();
 
   MemoryService::set_universe_heap(Universe::heap());