hotspot/src/share/vm/runtime/arguments.cpp
changeset 17383 3665c0901a0d
parent 17098 7aa4c9e7f85b
child 17385 94c6270d1890
equal deleted inserted replaced
17382:bba473b81ec0 17383:3665c0901a0d
  1087   }
  1087   }
  1088   // Increase the code cache size - tiered compiles a lot more.
  1088   // Increase the code cache size - tiered compiles a lot more.
  1089   if (FLAG_IS_DEFAULT(ReservedCodeCacheSize)) {
  1089   if (FLAG_IS_DEFAULT(ReservedCodeCacheSize)) {
  1090     FLAG_SET_DEFAULT(ReservedCodeCacheSize, ReservedCodeCacheSize * 5);
  1090     FLAG_SET_DEFAULT(ReservedCodeCacheSize, ReservedCodeCacheSize * 5);
  1091   }
  1091   }
       
  1092   if (!UseInterpreter) { // -Xcomp
       
  1093     Tier3InvokeNotifyFreqLog = 0;
       
  1094     Tier4InvocationThreshold = 0;
       
  1095   }
  1092 }
  1096 }
  1093 
  1097 
  1094 #if INCLUDE_ALL_GCS
  1098 #if INCLUDE_ALL_GCS
  1095 static void disable_adaptive_size_policy(const char* collector_name) {
  1099 static void disable_adaptive_size_policy(const char* collector_name) {
  1096   if (UseAdaptiveSizePolicy) {
  1100   if (UseAdaptiveSizePolicy) {
  1659 }
  1663 }
  1660 
  1664 
  1661 // Aggressive optimization flags  -XX:+AggressiveOpts
  1665 // Aggressive optimization flags  -XX:+AggressiveOpts
  1662 void Arguments::set_aggressive_opts_flags() {
  1666 void Arguments::set_aggressive_opts_flags() {
  1663 #ifdef COMPILER2
  1667 #ifdef COMPILER2
       
  1668   if (AggressiveUnboxing) {
       
  1669     if (FLAG_IS_DEFAULT(EliminateAutoBox)) {
       
  1670       FLAG_SET_DEFAULT(EliminateAutoBox, true);
       
  1671     } else if (!EliminateAutoBox) {
       
  1672       // warning("AggressiveUnboxing is disabled because EliminateAutoBox is disabled");
       
  1673       AggressiveUnboxing = false;
       
  1674     }
       
  1675     if (FLAG_IS_DEFAULT(DoEscapeAnalysis)) {
       
  1676       FLAG_SET_DEFAULT(DoEscapeAnalysis, true);
       
  1677     } else if (!DoEscapeAnalysis) {
       
  1678       // warning("AggressiveUnboxing is disabled because DoEscapeAnalysis is disabled");
       
  1679       AggressiveUnboxing = false;
       
  1680     }
       
  1681   }
  1664   if (AggressiveOpts || !FLAG_IS_DEFAULT(AutoBoxCacheMax)) {
  1682   if (AggressiveOpts || !FLAG_IS_DEFAULT(AutoBoxCacheMax)) {
  1665     if (FLAG_IS_DEFAULT(EliminateAutoBox)) {
  1683     if (FLAG_IS_DEFAULT(EliminateAutoBox)) {
  1666       FLAG_SET_DEFAULT(EliminateAutoBox, true);
  1684       FLAG_SET_DEFAULT(EliminateAutoBox, true);
  1667     }
  1685     }
  1668     if (FLAG_IS_DEFAULT(AutoBoxCacheMax)) {
  1686     if (FLAG_IS_DEFAULT(AutoBoxCacheMax)) {