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

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

    XMLWordPrintable

Details

    • b21
    • 14
    • 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

                kvn Vladimir Kozlov
                dnsimon Douglas Simon
                Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: