mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-26 22:34:27 +02:00
6934604: enable parts of EliminateAutoBox by default
Resurrected autobox elimination code and enabled part of it by default. Reviewed-by: roland, twisti
This commit is contained in:
parent
7c367a6025
commit
b4977e887a
48 changed files with 5776 additions and 501 deletions
|
@ -1089,6 +1089,10 @@ void Arguments::set_tiered_flags() {
|
|||
if (FLAG_IS_DEFAULT(ReservedCodeCacheSize)) {
|
||||
FLAG_SET_DEFAULT(ReservedCodeCacheSize, ReservedCodeCacheSize * 5);
|
||||
}
|
||||
if (!UseInterpreter) { // -Xcomp
|
||||
Tier3InvokeNotifyFreqLog = 0;
|
||||
Tier4InvocationThreshold = 0;
|
||||
}
|
||||
}
|
||||
|
||||
#if INCLUDE_ALL_GCS
|
||||
|
@ -1661,6 +1665,20 @@ void Arguments::set_bytecode_flags() {
|
|||
// Aggressive optimization flags -XX:+AggressiveOpts
|
||||
void Arguments::set_aggressive_opts_flags() {
|
||||
#ifdef COMPILER2
|
||||
if (AggressiveUnboxing) {
|
||||
if (FLAG_IS_DEFAULT(EliminateAutoBox)) {
|
||||
FLAG_SET_DEFAULT(EliminateAutoBox, true);
|
||||
} else if (!EliminateAutoBox) {
|
||||
// warning("AggressiveUnboxing is disabled because EliminateAutoBox is disabled");
|
||||
AggressiveUnboxing = false;
|
||||
}
|
||||
if (FLAG_IS_DEFAULT(DoEscapeAnalysis)) {
|
||||
FLAG_SET_DEFAULT(DoEscapeAnalysis, true);
|
||||
} else if (!DoEscapeAnalysis) {
|
||||
// warning("AggressiveUnboxing is disabled because DoEscapeAnalysis is disabled");
|
||||
AggressiveUnboxing = false;
|
||||
}
|
||||
}
|
||||
if (AggressiveOpts || !FLAG_IS_DEFAULT(AutoBoxCacheMax)) {
|
||||
if (FLAG_IS_DEFAULT(EliminateAutoBox)) {
|
||||
FLAG_SET_DEFAULT(EliminateAutoBox, true);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue