hotspot/src/share/vm/runtime/arguments.cpp
changeset 21575 6a9645992cee
parent 21196 538177a5209a
child 21584 81e8851e4d07
equal deleted inserted replaced
21574:d47713227456 21575:6a9645992cee
  1130   }
  1130   }
  1131   if (!UseInterpreter) { // -Xcomp
  1131   if (!UseInterpreter) { // -Xcomp
  1132     Tier3InvokeNotifyFreqLog = 0;
  1132     Tier3InvokeNotifyFreqLog = 0;
  1133     Tier4InvocationThreshold = 0;
  1133     Tier4InvocationThreshold = 0;
  1134   }
  1134   }
  1135   if (FLAG_IS_DEFAULT(NmethodSweepFraction)) {
       
  1136     FLAG_SET_DEFAULT(NmethodSweepFraction, 1 + ReservedCodeCacheSize / (16 * M));
       
  1137   }
       
  1138 }
  1135 }
  1139 
  1136 
  1140 #if INCLUDE_ALL_GCS
  1137 #if INCLUDE_ALL_GCS
  1141 static void disable_adaptive_size_policy(const char* collector_name) {
  1138 static void disable_adaptive_size_policy(const char* collector_name) {
  1142   if (UseAdaptiveSizePolicy) {
  1139   if (UseAdaptiveSizePolicy) {
  3641     if (CompilationPolicyChoice >= 2) {
  3638     if (CompilationPolicyChoice >= 2) {
  3642       vm_exit_during_initialization(
  3639       vm_exit_during_initialization(
  3643         "Incompatible compilation policy selected", NULL);
  3640         "Incompatible compilation policy selected", NULL);
  3644     }
  3641     }
  3645   }
  3642   }
       
  3643   // Set NmethodSweepFraction after the size of the code cache is adapted (in case of tiered)
       
  3644   if (FLAG_IS_DEFAULT(NmethodSweepFraction)) {
       
  3645     FLAG_SET_DEFAULT(NmethodSweepFraction, 1 + ReservedCodeCacheSize / (16 * M));
       
  3646   }
       
  3647 
  3646 
  3648 
  3647   // Set heap size based on available physical memory
  3649   // Set heap size based on available physical memory
  3648   set_heap_size();
  3650   set_heap_size();
  3649 
  3651 
  3650 #if INCLUDE_ALL_GCS
  3652 #if INCLUDE_ALL_GCS