< prev index next >

src/share/vm/runtime/thread.cpp

Print this page

        

*** 3768,3777 **** --- 3768,3784 ---- JvmtiExport::post_vm_start(); // Final system initialization including security manager and system class loader call_initPhase3(CHECK_JNI_ERR); + #ifdef INCLUDE_JVMCI + if (EnableJVMCI && UseJVMCICompiler && (!UseInterpreter || !BackgroundCompilation)) { + // 8145270: Force initialization of JVMCI runtime otherwise requests for blocking + // compilations via JVMCI will not actually block until JVMCI is initialized. + JVMCIRuntime::force_initialization(CHECK_JNI_ERR); + } + #endif // cache the system class loader SystemDictionary::compute_java_system_loader(CHECK_(JNI_ERR)); // Always call even when there are not JVMTI environments yet, since environments // may be attached late and JVMTI must track phases of VM execution
< prev index next >