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

Doug Simon dnsimon at openjdk.org
Mon Sep 23 08:14:39 UTC 2024


On Mon, 23 Sep 2024 07:31:10 GMT, Tomáš Zezula <duke at openjdk.org> wrote:

>> 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 EnableJVMCI handling.

Marked as reviewed by dnsimon (Reviewer).

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

PR Review: https://git.openjdk.org/jdk/pull/21069#pullrequestreview-2321435416


More information about the hotspot-compiler-dev mailing list