[JVMCI] add -XX:+UseGraalJIT flag

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • 21
    • Affects Version/s: 21
    • Component/s: hotspot
    • b26

      Use of the Graal-based JIT in OpenJDK currently requires the following flag:

      -XX:+EnableJVMCIProduct

      This has no direct association with Graal. If the JDK image happens to include a non-Graal JVMCI implementation, it will be automatically selected. This would come as a surprise to users who have equated JVMCI with Graal.

      To address this, I propose to introduce a new flag, -XX:+UseGraalJIT, such that the Graal JIT can be enabled with:

      -XX:+UseGraalJIT

      The VM will then fail at startup if there is a non-Graal JVMCI implementation or no JVMCI implementation in the JDK image.

            Assignee:
            Douglas Simon
            Reporter:
            Douglas Simon
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: