RFR: 8357506: [JVMCI] Consolidate eager JVMCI initialization code [v2]

Yudi Zheng yzheng at openjdk.org
Fri May 23 06:35:56 UTC 2025


On Thu, 22 May 2025 17:24:08 GMT, Doug Simon <dnsimon at openjdk.org> wrote:

>> While working on [JDK-8357135](https://bugs.openjdk.org/browse/JDK-8357135), I was reminded that some of the code implementing eager JVMCI compiler initialization (i.e. `-XX:+EagerJVMCI`) is in helper methods such as `JVMCIRuntime::call_getCompiler` that sound general purpose but are only used for eager JVMCI compiler initialization. This PR inlines `JVMCIRuntime::call_getCompiler` and renames `JVMCI::initialize_compiler` to `initialize_compiler_in_create_vm` to make its single use case clearer.
>
> Doug Simon has refreshed the contents of this pull request, and previous commits have been removed. The incremental views will show differences compared to the previous content of the PR. The pull request contains one new commit since the last revision:
> 
>   consolidate JVMCI eager initialization

LGTM

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

Marked as reviewed by yzheng (Committer).

PR Review: https://git.openjdk.org/jdk/pull/25369#pullrequestreview-2863339517


More information about the graal-dev mailing list