1353 }
1354
1355 if (!RewriteBytecodes) {
1356 FLAG_SET_DEFAULT(RewriteFrequentPairs, false);
1357 }
1358 }
1359
1360 // Aggressive optimization flags -XX:+AggressiveOpts
1361 void Arguments::set_aggressive_opts_flags() {
1362 #ifdef COMPILER2
1363 if (AggressiveOpts || !FLAG_IS_DEFAULT(AutoBoxCacheMax)) {
1364 if (FLAG_IS_DEFAULT(EliminateAutoBox)) {
1365 FLAG_SET_DEFAULT(EliminateAutoBox, true);
1366 }
1367 if (FLAG_IS_DEFAULT(AutoBoxCacheMax)) {
1368 FLAG_SET_DEFAULT(AutoBoxCacheMax, 20000);
1369 }
1370
1371 // Feed the cache size setting into the JDK
1372 char buffer[1024];
1373 sprintf(buffer, "java.lang.Integer.IntegerCache.high=%d", AutoBoxCacheMax);
1374 add_property(buffer);
1375 }
1376 if (AggressiveOpts && FLAG_IS_DEFAULT(DoEscapeAnalysis)) {
1377 FLAG_SET_DEFAULT(DoEscapeAnalysis, true);
1378 }
1379 if (AggressiveOpts && FLAG_IS_DEFAULT(SpecialArraysEquals)) {
1380 FLAG_SET_DEFAULT(SpecialArraysEquals, true);
1381 }
1382 if (AggressiveOpts && FLAG_IS_DEFAULT(BiasedLockingStartupDelay)) {
1383 FLAG_SET_DEFAULT(BiasedLockingStartupDelay, 500);
1384 }
1385 #endif
1386
1387 if (AggressiveOpts) {
1388 // Sample flag setting code
1389 // if (FLAG_IS_DEFAULT(EliminateZeroing)) {
1390 // FLAG_SET_DEFAULT(EliminateZeroing, true);
1391 // }
1392 }
1393 }
|
1353 }
1354
1355 if (!RewriteBytecodes) {
1356 FLAG_SET_DEFAULT(RewriteFrequentPairs, false);
1357 }
1358 }
1359
1360 // Aggressive optimization flags -XX:+AggressiveOpts
1361 void Arguments::set_aggressive_opts_flags() {
1362 #ifdef COMPILER2
1363 if (AggressiveOpts || !FLAG_IS_DEFAULT(AutoBoxCacheMax)) {
1364 if (FLAG_IS_DEFAULT(EliminateAutoBox)) {
1365 FLAG_SET_DEFAULT(EliminateAutoBox, true);
1366 }
1367 if (FLAG_IS_DEFAULT(AutoBoxCacheMax)) {
1368 FLAG_SET_DEFAULT(AutoBoxCacheMax, 20000);
1369 }
1370
1371 // Feed the cache size setting into the JDK
1372 char buffer[1024];
1373 sprintf(buffer, "java.lang.Integer.IntegerCache.high=" INTX_FORMAT, AutoBoxCacheMax);
1374 add_property(buffer);
1375 }
1376 if (AggressiveOpts && FLAG_IS_DEFAULT(DoEscapeAnalysis)) {
1377 FLAG_SET_DEFAULT(DoEscapeAnalysis, true);
1378 }
1379 if (AggressiveOpts && FLAG_IS_DEFAULT(SpecialArraysEquals)) {
1380 FLAG_SET_DEFAULT(SpecialArraysEquals, true);
1381 }
1382 if (AggressiveOpts && FLAG_IS_DEFAULT(BiasedLockingStartupDelay)) {
1383 FLAG_SET_DEFAULT(BiasedLockingStartupDelay, 500);
1384 }
1385 #endif
1386
1387 if (AggressiveOpts) {
1388 // Sample flag setting code
1389 // if (FLAG_IS_DEFAULT(EliminateZeroing)) {
1390 // FLAG_SET_DEFAULT(EliminateZeroing, true);
1391 // }
1392 }
1393 }
|