equal
deleted
inserted
replaced
1252 } |
1252 } |
1253 } |
1253 } |
1254 |
1254 |
1255 // Aggressive optimization flags -XX:+AggressiveOpts |
1255 // Aggressive optimization flags -XX:+AggressiveOpts |
1256 void Arguments::set_aggressive_opts_flags() { |
1256 void Arguments::set_aggressive_opts_flags() { |
|
1257 #ifdef COMPILER2 |
|
1258 if (AggressiveOpts || !FLAG_IS_DEFAULT(AutoBoxCacheMax)) { |
|
1259 if (FLAG_IS_DEFAULT(EliminateAutoBox)) { |
|
1260 FLAG_SET_DEFAULT(EliminateAutoBox, true); |
|
1261 } |
|
1262 if (FLAG_IS_DEFAULT(AutoBoxCacheMax)) { |
|
1263 FLAG_SET_DEFAULT(AutoBoxCacheMax, 20000); |
|
1264 } |
|
1265 |
|
1266 // Feed the cache size setting into the JDK |
|
1267 char buffer[1024]; |
|
1268 sprintf(buffer, "java.lang.Integer.IntegerCache.high=%d", AutoBoxCacheMax); |
|
1269 add_property(buffer); |
|
1270 } |
|
1271 #endif |
|
1272 |
1257 if (AggressiveOpts) { |
1273 if (AggressiveOpts) { |
1258 NOT_WINDOWS( |
1274 NOT_WINDOWS( |
1259 // No measured benefit on Windows |
1275 // No measured benefit on Windows |
1260 if (FLAG_IS_DEFAULT(CacheTimeMillis)) { |
1276 if (FLAG_IS_DEFAULT(CacheTimeMillis)) { |
1261 FLAG_SET_DEFAULT(CacheTimeMillis, true); |
1277 FLAG_SET_DEFAULT(CacheTimeMillis, true); |