diff src/share/vm/runtime/arguments.cpp @ 10292:acac2b03a07f

8014765: VM exits if MaxTenuringThreshold is set below the default InitialTenuringThreshold, and InitialTenuringThreshold is not set Summary: The VM exits when the condition in the subject line applies. The fix sets InitialTenuringThreshold to MaxTenuringThreshold if it is larger than MaxTenuringThreshold and InitialTenuringThreshold has not been set (is default). Reviewed-by: jwilhelm, jmasa, brutisso, johnc
author tschatzl
date Thu, 16 May 2013 23:51:51 +0200
parents 12f651e29f6b
children 2958af1d8c5a
line wrap: on
line diff
--- a/src/share/vm/runtime/arguments.cpp	Thu May 16 09:24:26 2013 -0700
+++ b/src/share/vm/runtime/arguments.cpp	Thu May 16 23:51:51 2013 +0200
@@ -3044,6 +3044,11 @@
     set_mode_flags(_int);
   }
 
+  // eventually fix up InitialTenuringThreshold if only MaxTenuringThreshold is set
+  if (FLAG_IS_DEFAULT(InitialTenuringThreshold) && (InitialTenuringThreshold > MaxTenuringThreshold)) {
+    FLAG_SET_ERGO(uintx, InitialTenuringThreshold, MaxTenuringThreshold);
+  }
+
 #ifndef COMPILER2
   // Don't degrade server performance for footprint
   if (FLAG_IS_DEFAULT(UseLargePages) &&