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

[JVMCI] add -XX:+UseGraalJIT flag

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 21
    • 21
    • 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.

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

              Created:
              Updated:
              Resolved: