-XX:+AggressiveOpts has been used as a catch-all method of enabling various experimental performance features, mostly targetted to improve score on very specific benchmarks. Most things it affected has been removed or integrated over time, e.g., JDK-8024826, leaving the behavior of the flag ill-defined and prone to cause more issues than it'll solve.
I suggest removing the flag altogether, possibly in a staggered fashion similar to MaxPermSize where it will produce a warning message in JDK X and then refuse to run in JDK X+1.