comparison src/share/vm/runtime/arguments.cpp @ 17:ff5961f4c095

6395208: Elide autoboxing for calls to HashMap.get(int) and HashMap.get(long) Reviewed-by: kvn, rasbold
author never
date Wed, 05 Dec 2007 09:01:00 -0800
parents a61af66fc99e
children 8b6e49187640
comparison
equal deleted inserted replaced
16:f8236e79048a 17:ff5961f4c095
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);