RFR: 8340398: [JVMCI] Unintuitive behavior of UseJVMCICompiler option [v3]

Tomáš Zezula duke at openjdk.org
Tue Sep 24 07:15:57 UTC 2024


> Disabling the JVMCI compiler with `-XX:-UseJVMCICompiler` not only deactivates JVMCI-based CompileBroker compilations but also prevents the loading of the libjvmci compiler. While this works as expected for CompileBroker compilations, it poses issues for the Truffle compiler. When `-XX:-UseJVMCICompiler` is used, Truffle falls back to the jargraal compiler, if available. This behavior may be confusing for Truffle users.
> 
> Expected behavior:
> 
> With `-XX:+UseGraalJIT`, both CompileBroker compilations and Truffle compilations should utilize the libjvmci compiler, if available.
> With `-XX:+EnableJVMCI`, CompileBroker compilations should use the C2 compiler, while only Truffle compilations should leverage the libjvmci compiler, if available.

Tomáš Zezula has updated the pull request incrementally with one additional commit since the last revision:

  JDK-8340398: Fixed UseJVMCINativeLibrary doc string.

-------------

Changes:
  - all: https://git.openjdk.org/jdk/pull/21069/files
  - new: https://git.openjdk.org/jdk/pull/21069/files/b7550463..28dbd932

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=21069&range=02
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=21069&range=01-02

  Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod
  Patch: https://git.openjdk.org/jdk/pull/21069.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/21069/head:pull/21069

PR: https://git.openjdk.org/jdk/pull/21069


More information about the hotspot-compiler-dev mailing list