--- a/hotspot/src/share/vm/prims/jni.cpp Thu Oct 08 10:25:45 2015 +0000
+++ b/hotspot/src/share/vm/prims/jni.cpp Thu Oct 08 12:49:30 2015 -1000
@@ -81,6 +81,10 @@
#if INCLUDE_ALL_GCS
#include "gc/g1/g1SATBCardTableModRefBS.hpp"
#endif // INCLUDE_ALL_GCS
+#if INCLUDE_JVMCI
+#include "jvmci/jvmciCompiler.hpp"
+#include "jvmci/jvmciRuntime.hpp"
+#endif
static jint CurrentVersion = JNI_VERSION_1_8;
@@ -3986,6 +3990,19 @@
*vm = (JavaVM *)(&main_vm);
*(JNIEnv**)penv = thread->jni_environment();
+#if INCLUDE_JVMCI
+ if (EnableJVMCI) {
+ if (UseJVMCICompiler) {
+ // JVMCI is initialized on a CompilerThread
+ if (BootstrapJVMCI) {
+ JavaThread* THREAD = thread;
+ JVMCICompiler* compiler = JVMCICompiler::instance(CATCH);
+ compiler->bootstrap();
+ }
+ }
+ }
+#endif
+
// Tracks the time application was running before GC
RuntimeService::record_application_start();