src/hotspot/share/gc/parallel/parallelArguments.cpp
changeset 54983 81becad91321
parent 54678 93f09ca4a7f8
child 55161 1a7f82c98eee
equal deleted inserted replaced
54982:b18c8301b8c2 54983:81becad91321
   111 
   111 
   112   // The survivor ratio's are calculated "raw", unlike the
   112   // The survivor ratio's are calculated "raw", unlike the
   113   // default gc, which adds 2 to the ratio value. We need to
   113   // default gc, which adds 2 to the ratio value. We need to
   114   // make sure the values are valid before using them.
   114   // make sure the values are valid before using them.
   115   if (MinSurvivorRatio < 3) {
   115   if (MinSurvivorRatio < 3) {
   116     FLAG_SET_ERGO(uintx, MinSurvivorRatio, 3);
   116     FLAG_SET_ERGO(MinSurvivorRatio, 3);
   117   }
   117   }
   118 
   118 
   119   if (InitialSurvivorRatio < 3) {
   119   if (InitialSurvivorRatio < 3) {
   120     FLAG_SET_ERGO(uintx, InitialSurvivorRatio, 3);
   120     FLAG_SET_ERGO(InitialSurvivorRatio, 3);
   121   }
   121   }
   122 }
   122 }
   123 
   123 
   124 void ParallelArguments::initialize_heap_flags_and_sizes() {
   124 void ParallelArguments::initialize_heap_flags_and_sizes() {
   125   if (is_heterogeneous_heap()) {
   125   if (is_heterogeneous_heap()) {