src/hotspot/share/gc/shenandoah/shenandoahArguments.cpp
changeset 54478 cdc54443fee5
parent 54423 6c0ab8bd8da5
child 54678 93f09ca4a7f8
equal deleted inserted replaced
54477:511be32f3863 54478:cdc54443fee5
   137       warning("AlwaysPreTouch is enabled, disabling ShenandoahUncommit");
   137       warning("AlwaysPreTouch is enabled, disabling ShenandoahUncommit");
   138     }
   138     }
   139     FLAG_SET_DEFAULT(ShenandoahUncommit, false);
   139     FLAG_SET_DEFAULT(ShenandoahUncommit, false);
   140   }
   140   }
   141 
   141 
       
   142   if ((InitialHeapSize == MaxHeapSize) && ShenandoahUncommit) {
       
   143     log_info(gc)("Min heap equals to max heap, disabling ShenandoahUncommit");
       
   144     FLAG_SET_DEFAULT(ShenandoahUncommit, false);
       
   145   }
       
   146 
   142   // If class unloading is disabled, no unloading for concurrent cycles as well.
   147   // If class unloading is disabled, no unloading for concurrent cycles as well.
   143   // If class unloading is enabled, users should opt-in for unloading during
   148   // If class unloading is enabled, users should opt-in for unloading during
   144   // concurrent cycles.
   149   // concurrent cycles.
   145   if (!ClassUnloading || !FLAG_IS_CMDLINE(ClassUnloadingWithConcurrentMark)) {
   150   if (!ClassUnloading || !FLAG_IS_CMDLINE(ClassUnloadingWithConcurrentMark)) {
   146     log_info(gc)("Consider -XX:+ClassUnloadingWithConcurrentMark if large pause times "
   151     log_info(gc)("Consider -XX:+ClassUnloadingWithConcurrentMark if large pause times "