< prev index next >

src/hotspot/share/gc/shenandoah/shenandoahArguments.cpp

Print this page




 142   }
 143 
 144   // Record more information about previous cycles for improved debugging pleasure
 145   if (FLAG_IS_DEFAULT(LogEventsBufferEntries)) {
 146     FLAG_SET_DEFAULT(LogEventsBufferEntries, 250);
 147   }
 148 
 149   if (ShenandoahAlwaysPreTouch) {
 150     if (!FLAG_IS_DEFAULT(ShenandoahUncommit)) {
 151       warning("AlwaysPreTouch is enabled, disabling ShenandoahUncommit");
 152     }
 153     FLAG_SET_DEFAULT(ShenandoahUncommit, false);
 154   }
 155 
 156   if ((InitialHeapSize == MaxHeapSize) && ShenandoahUncommit) {
 157     log_info(gc)("Min heap equals to max heap, disabling ShenandoahUncommit");
 158     FLAG_SET_DEFAULT(ShenandoahUncommit, false);
 159   }
 160 
 161   // If class unloading is disabled, no unloading for concurrent cycles as well.
 162   // If class unloading is enabled, users should opt-in for unloading during
 163   // concurrent cycles.
 164   if (!ClassUnloading || !FLAG_IS_CMDLINE(ClassUnloadingWithConcurrentMark)) {
 165     log_info(gc)("Consider -XX:+ClassUnloadingWithConcurrentMark if large pause times "
 166                  "are observed on class-unloading sensitive workloads");
 167     FLAG_SET_DEFAULT(ClassUnloadingWithConcurrentMark, false);
 168   }
 169 
 170   // AOT is not supported yet
 171   if (UseAOT) {
 172     if (!FLAG_IS_DEFAULT(UseAOT)) {
 173       warning("Shenandoah does not support AOT at this moment, disabling UseAOT");
 174     }
 175     FLAG_SET_DEFAULT(UseAOT, false);
 176   }
 177 
 178   // TLAB sizing policy makes resizing decisions before each GC cycle. It averages
 179   // historical data, assigning more recent data the weight according to TLABAllocationWeight.
 180   // Current default is good for generational collectors that run frequent young GCs.
 181   // With Shenandoah, GC cycles are much less frequent, so we need we need sizing policy
 182   // to converge faster over smaller number of resizing decisions.
 183   if (FLAG_IS_DEFAULT(TLABAllocationWeight)) {
 184     FLAG_SET_DEFAULT(TLABAllocationWeight, 90);
 185   }
 186 




 142   }
 143 
 144   // Record more information about previous cycles for improved debugging pleasure
 145   if (FLAG_IS_DEFAULT(LogEventsBufferEntries)) {
 146     FLAG_SET_DEFAULT(LogEventsBufferEntries, 250);
 147   }
 148 
 149   if (ShenandoahAlwaysPreTouch) {
 150     if (!FLAG_IS_DEFAULT(ShenandoahUncommit)) {
 151       warning("AlwaysPreTouch is enabled, disabling ShenandoahUncommit");
 152     }
 153     FLAG_SET_DEFAULT(ShenandoahUncommit, false);
 154   }
 155 
 156   if ((InitialHeapSize == MaxHeapSize) && ShenandoahUncommit) {
 157     log_info(gc)("Min heap equals to max heap, disabling ShenandoahUncommit");
 158     FLAG_SET_DEFAULT(ShenandoahUncommit, false);
 159   }
 160 
 161   // If class unloading is disabled, no unloading for concurrent cycles as well.
 162   if (!ClassUnloading) {




 163     FLAG_SET_DEFAULT(ClassUnloadingWithConcurrentMark, false);
 164   }
 165 
 166   // AOT is not supported yet
 167   if (UseAOT) {
 168     if (!FLAG_IS_DEFAULT(UseAOT)) {
 169       warning("Shenandoah does not support AOT at this moment, disabling UseAOT");
 170     }
 171     FLAG_SET_DEFAULT(UseAOT, false);
 172   }
 173 
 174   // TLAB sizing policy makes resizing decisions before each GC cycle. It averages
 175   // historical data, assigning more recent data the weight according to TLABAllocationWeight.
 176   // Current default is good for generational collectors that run frequent young GCs.
 177   // With Shenandoah, GC cycles are much less frequent, so we need we need sizing policy
 178   // to converge faster over smaller number of resizing decisions.
 179   if (FLAG_IS_DEFAULT(TLABAllocationWeight)) {
 180     FLAG_SET_DEFAULT(TLABAllocationWeight, 90);
 181   }
 182 


< prev index next >