Mercurial > hg > truffle
comparison src/share/vm/runtime/arguments.cpp @ 10278:6f3fd5150b67
6934604: enable parts of EliminateAutoBox by default
Summary: Resurrected autobox elimination code and enabled part of it by default.
Reviewed-by: roland, twisti
author | kvn |
---|---|
date | Wed, 08 May 2013 15:08:01 -0700 |
parents | e01e02a9fcb6 |
children | 8bcfd9ce2c6b |
comparison
equal
deleted
inserted
replaced
10277:aabf54ccedb1 | 10278:6f3fd5150b67 |
---|---|
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)) { |