RFR: 8161265: [JVMCI] EnableJVMCI should only be required when its not implied by other flags
cthalinger at twitter.com
Wed Jul 13 18:32:31 UTC 2016
> On Jul 12, 2016, at 11:20 PM, Doug Simon <doug.simon at oracle.com> wrote:
> The -XX:+EnableJVMCI option 1) unlocks code paths in the VM related to JVMCI and 2) is required to unlock all other JVMCI options. However, 1 could be achieved by specific JVMCI options without requiring 2. Since JVMCI is experimental, these options already require -XX:+UnlockExperimentalVMOptions. Having to unlock them twice is redundant and makes for unnecessarily long command lines. For example:
> java -XX:+UnlockExperimentalVMOptions -XX:+EnableJVMCI -XX:+UseJVMCICompiler ...
> could be:
> java -XX:+UnlockExperimentalVMOptions -XX:+UseJVMCICompiler ...
> This webrev removes the need for specifying -XX:+EnableJVMCI for these options:
Totally makes sense for this one.
Not so sure about these.
On a related note, all except two JVMCI-related options have “JVMCI” in their names. Maybe these should follow suit:
Thinking about it, if we are going to integrate this change the remaining two options should have JVMCI in their names. Otherwise it is confusing that TraceUncollectedSpeculations (which seems unrelated) enables JVMCI.
> It also significantly simplifies the logic for checking consistency for JVMCI options. The trade off is that when new JVMCI options are added, the logic in JVMCIGlobals::check_jvmci_flags_are_consistent needs to be updated.
> Lastly, I took this opportunity to remove the CodeInstallSafepointChecks option as it should always be true.
More information about the hotspot-compiler-dev