comparison 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
comparison
equal deleted inserted replaced
10291:48391ab0687e 10292:acac2b03a07f
3042 } 3042 }
3043 if (CompileThreshold == 0) { 3043 if (CompileThreshold == 0) {
3044 set_mode_flags(_int); 3044 set_mode_flags(_int);
3045 } 3045 }
3046 3046
3047 // eventually fix up InitialTenuringThreshold if only MaxTenuringThreshold is set
3048 if (FLAG_IS_DEFAULT(InitialTenuringThreshold) && (InitialTenuringThreshold > MaxTenuringThreshold)) {
3049 FLAG_SET_ERGO(uintx, InitialTenuringThreshold, MaxTenuringThreshold);
3050 }
3051
3047 #ifndef COMPILER2 3052 #ifndef COMPILER2
3048 // Don't degrade server performance for footprint 3053 // Don't degrade server performance for footprint
3049 if (FLAG_IS_DEFAULT(UseLargePages) && 3054 if (FLAG_IS_DEFAULT(UseLargePages) &&
3050 MaxHeapSize < LargePageHeapSizeThreshold) { 3055 MaxHeapSize < LargePageHeapSizeThreshold) {
3051 // No need for large granularity pages w/small heaps. 3056 // No need for large granularity pages w/small heaps.