mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-18 10:04:42 +02:00
8195632: [Graal] Introduce EagerJVMCI flag to force eager JVMCI initialization
Reviewed-by: thartmann
This commit is contained in:
parent
89d8e788f5
commit
d0ec59a9fb
6 changed files with 23 additions and 7 deletions
|
@ -3863,10 +3863,11 @@ jint Threads::create_vm(JavaVMInitArgs* args, bool* canTryAgain) {
|
|||
|
||||
#if INCLUDE_JVMCI
|
||||
if (EnableJVMCI) {
|
||||
// Initialize JVMCI eagerly if JVMCIPrintProperties is enabled.
|
||||
// Initialize JVMCI eagerly when it is explicitly requested.
|
||||
// Or when JVMCIPrintProperties is enabled.
|
||||
// The JVMCI Java initialization code will read this flag and
|
||||
// do the printing if it's set.
|
||||
bool init = JVMCIPrintProperties;
|
||||
bool init = EagerJVMCI || JVMCIPrintProperties;
|
||||
|
||||
if (!init) {
|
||||
// 8145270: Force initialization of JVMCI runtime otherwise requests for blocking
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue