8136421: JEP 243: Java-Level JVM Compiler Interface

Reviewed-by: ihse, alanb, roland, coleenp, iveresov, kvn, kbarrett
This commit is contained in:
Christian Thalinger 2015-10-08 12:49:30 -10:00
parent f5b4bb46f5
commit 16526e000e
505 changed files with 50394 additions and 915 deletions

View file

@ -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 @@ static jint JNI_CreateJavaVM_inner(JavaVM **vm, void **penv, void *args) {
*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();