src/share/vm/runtime/thread.cpp

Print this page

        

@@ -3327,10 +3327,15 @@
 
   // Parse arguments
   jint parse_result = Arguments::parse(args);
   if (parse_result != JNI_OK) return parse_result;
 
+  os::init_ergo();
+
+  jint ergo_result = Arguments::apply_ergonomics();
+  if (ergo_result != JNI_OK) return ergo_result;
+
   if (PauseAtStartup) {
     os::pause();
   }
 
 #ifndef USDT2