8195632: [Graal] Introduce EagerJVMCI flag to force eager JVMCI initialization

Reviewed-by: thartmann
This commit is contained in:
Vladimir Kozlov 2018-03-01 09:03:30 -08:00
parent 89d8e788f5
commit d0ec59a9fb
6 changed files with 23 additions and 7 deletions

View file

@ -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