[11] RFR(S): 8199777: Deprecate -XX:+AggressiveOpts

Tobias Hartmann tobias.hartmann at oracle.com
Tue Mar 20 09:20:45 UTC 2018


please review the following patch:

The VM option "-XX:+AggressiveOpts" should be deprecated in JDK 11 and removed in a future release.
The option was originally supposed to enable some experimental optimizations of the C2 compiler to
improve performance of specific benchmarks. Most features have been removed or integrated over time
leaving the behavior of the option ill-defined and error-prone. The only effect that the flag
currently has is setting "AutoBoxCacheMax" to 20000 and "BiasedLockingStartupDelay" to 500. The same
configuration can be achieved by setting the corresponding flags via the command line.

I've deprecated the flag and replaced the usages in tests by -XX:+EliminateAutoBox


More information about the hotspot-dev mailing list