equal
deleted
inserted
replaced
653 JRT_END |
653 JRT_END |
654 |
654 |
655 |
655 |
656 // private static JVMCIRuntime JVMCI.initializeRuntime() |
656 // private static JVMCIRuntime JVMCI.initializeRuntime() |
657 JVM_ENTRY_NO_ENV(jobject, JVM_GetJVMCIRuntime(JNIEnv *env, jclass c)) |
657 JVM_ENTRY_NO_ENV(jobject, JVM_GetJVMCIRuntime(JNIEnv *env, jclass c)) |
658 JNI_JVMCIENV(env); |
658 JNI_JVMCIENV(thread, env); |
659 if (!EnableJVMCI) { |
659 if (!EnableJVMCI) { |
660 JVMCI_THROW_MSG_NULL(InternalError, "JVMCI is not enabled"); |
660 JVMCI_THROW_MSG_NULL(InternalError, "JVMCI is not enabled"); |
661 } |
661 } |
662 JVMCIENV->runtime()->initialize_HotSpotJVMCIRuntime(JVMCI_CHECK_NULL); |
662 JVMCIENV->runtime()->initialize_HotSpotJVMCIRuntime(JVMCI_CHECK_NULL); |
663 JVMCIObject runtime = JVMCIENV->runtime()->get_HotSpotJVMCIRuntime(JVMCI_CHECK_NULL); |
663 JVMCIObject runtime = JVMCIENV->runtime()->get_HotSpotJVMCIRuntime(JVMCI_CHECK_NULL); |
875 #endif // TARGET_ARCH_sparc |
875 #endif // TARGET_ARCH_sparc |
876 #else |
876 #else |
877 fatal("check TLAB allocation code for address space conflicts"); |
877 fatal("check TLAB allocation code for address space conflicts"); |
878 #endif |
878 #endif |
879 |
879 |
880 JNI_JVMCIENV(env); |
880 JNI_JVMCIENV(thread, env); |
881 |
881 |
882 if (!EnableJVMCI) { |
882 if (!EnableJVMCI) { |
883 JVMCI_THROW_MSG(InternalError, "JVMCI is not enabled"); |
883 JVMCI_THROW_MSG(InternalError, "JVMCI is not enabled"); |
884 } |
884 } |
885 |
885 |
1349 bool is_osr = entry_bci != InvocationEntryBci; |
1349 bool is_osr = entry_bci != InvocationEntryBci; |
1350 if (compiler->is_bootstrapping() && is_osr) { |
1350 if (compiler->is_bootstrapping() && is_osr) { |
1351 // no OSR compilations during bootstrap - the compiler is just too slow at this point, |
1351 // no OSR compilations during bootstrap - the compiler is just too slow at this point, |
1352 // and we know that there are no endless loops |
1352 // and we know that there are no endless loops |
1353 compile_state->set_failure(true, "No OSR during boostrap"); |
1353 compile_state->set_failure(true, "No OSR during boostrap"); |
|
1354 return; |
|
1355 } |
|
1356 if (JVMCI::shutdown_called()) { |
|
1357 compile_state->set_failure(false, "Avoiding compilation during shutdown"); |
1354 return; |
1358 return; |
1355 } |
1359 } |
1356 |
1360 |
1357 HandleMark hm; |
1361 HandleMark hm; |
1358 JVMCIObject receiver = get_HotSpotJVMCIRuntime(JVMCIENV); |
1362 JVMCIObject receiver = get_HotSpotJVMCIRuntime(JVMCIENV); |