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

[JVMCI] -XX:+EnableJVMCIProduct breaks -XX:-EnableJVMCI

    Details

    • Subcomponent:
    • Introduced In Build:
      b21
    • Introduced In Version:
      14
    • Resolved In Build:
      b27

      Backports

        Description

        The -XX:+EnableJVMCIProduct option (added by JDK-8232118) currently sets the default values of EnableJVMCI and UseJVMCICompiler. If these options are also explicitly on the command line, these explicit values should take precedence. For example:

        java -XX:+UnlockExperimentalVMOptions -XX:+EnableJVMCIProduct -XX:-UnlockExperimentalVMOptions -XX:-EnableJVMCI

        should result in JVMCI being completely disabled. While this command line may look strange, it can occur when `-XX:+UnlockExperimentalVMOptions -XX:+EnableJVMCIProduct -XX:-UnlockExperimentalVMOptions` is on the command line due to use of the jlink --add-options flag. This is exactly what's done when creating a GraalVM binary.

        Currently, the above command line results in a false error:

        Improperly specified VM option UseJVMCICompiler: EnableJVMCI cannot be disabled

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  kvn Vladimir Kozlov
                  Reporter:
                  dnsimon Douglas Simon
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  4 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: