Mercurial > hg > truffle
comparison src/share/vm/runtime/arguments.cpp @ 46:8b6e49187640
Merge
author | rasbold |
---|---|
date | Thu, 13 Mar 2008 05:40:44 -0700 |
parents | 183f41cf8bfe ff5961f4c095 |
children | cd0742ba123c 99269dbf4ba8 |
comparison
equal
deleted
inserted
replaced
15:d825a8a2bd39 | 46:8b6e49187640 |
---|---|
1260 } | 1260 } |
1261 } | 1261 } |
1262 | 1262 |
1263 // Aggressive optimization flags -XX:+AggressiveOpts | 1263 // Aggressive optimization flags -XX:+AggressiveOpts |
1264 void Arguments::set_aggressive_opts_flags() { | 1264 void Arguments::set_aggressive_opts_flags() { |
1265 #ifdef COMPILER2 | |
1266 if (AggressiveOpts || !FLAG_IS_DEFAULT(AutoBoxCacheMax)) { | |
1267 if (FLAG_IS_DEFAULT(EliminateAutoBox)) { | |
1268 FLAG_SET_DEFAULT(EliminateAutoBox, true); | |
1269 } | |
1270 if (FLAG_IS_DEFAULT(AutoBoxCacheMax)) { | |
1271 FLAG_SET_DEFAULT(AutoBoxCacheMax, 20000); | |
1272 } | |
1273 | |
1274 // Feed the cache size setting into the JDK | |
1275 char buffer[1024]; | |
1276 sprintf(buffer, "java.lang.Integer.IntegerCache.high=%d", AutoBoxCacheMax); | |
1277 add_property(buffer); | |
1278 } | |
1279 #endif | |
1280 | |
1265 if (AggressiveOpts) { | 1281 if (AggressiveOpts) { |
1266 NOT_WINDOWS( | 1282 NOT_WINDOWS( |
1267 // No measured benefit on Windows | 1283 // No measured benefit on Windows |
1268 if (FLAG_IS_DEFAULT(CacheTimeMillis)) { | 1284 if (FLAG_IS_DEFAULT(CacheTimeMillis)) { |
1269 FLAG_SET_DEFAULT(CacheTimeMillis, true); | 1285 FLAG_SET_DEFAULT(CacheTimeMillis, true); |