Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8199778

Deprecate -XX:+AggressiveOpts

XMLWordPrintable

    • Icon: CSR CSR
    • Resolution: Approved
    • Icon: P4 P4
    • 11
    • hotspot
    • None
    • behavioral
    • low
    • The only effect that the flag currently has is setting AutoBoxCacheMax = 20000 and BiasedLockingStartupDelay = 500. Both can be done manually by setting the corresponding flags on the command line.
    • add/remove/modify command line option
    • Implementation

      Summary

      Deprecate the AggressiveOpts flag in JDK 11 because it's behavior is ill-defined. The flag will then be removed in JDK 12.

      Problem

      AggressiveOpts has been used as a catch-all method of enabling various experimental performance features, mostly targeted to improve score on very specific benchmarks. Most things it affected has been removed or integrated over time, leaving the behavior of the flag ill-defined and prone to cause more issues than it'll solve. The only effect that the flag currently has is setting AutoBoxCacheMax = 20000 and BiasedLockingStartupDelay = 500. Both can be done manually by setting the corresponding flags on the command line.

      Solution

      Deprecate the flag in JDK 11 and then remove it in JDK 12.

      Specification

      The AggressiveOpts will be marked as deprecated in JDK 11.

            thartmann Tobias Hartmann
            thartmann Tobias Hartmann
            Vladimir Kozlov
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: