src/hotspot/share/runtime/arguments.cpp
changeset 50864 cc318277c142
parent 50765 c49a01150a66
child 50944 8cc36fac7f3d
--- a/src/hotspot/share/runtime/arguments.cpp	Thu Jun 28 07:00:35 2018 +0200
+++ b/src/hotspot/share/runtime/arguments.cpp	Thu Jun 28 07:22:59 2018 +0200
@@ -3900,13 +3900,13 @@
   jint result = set_ergonomics_flags();
   if (result != JNI_OK) return result;
 
-  set_shared_spaces_flags();
-
   // Set heap size based on available physical memory
   set_heap_size();
 
   GCConfig::arguments()->initialize();
 
+  set_shared_spaces_flags();
+
   // Initialize Metaspace flags and alignments
   Metaspace::ergo_initialize();