mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-20 02:54:35 +02:00
8136421: JEP 243: Java-Level JVM Compiler Interface
Reviewed-by: ihse, alanb, roland, coleenp, iveresov, kvn, kbarrett
This commit is contained in:
parent
f5b4bb46f5
commit
16526e000e
505 changed files with 50394 additions and 915 deletions
|
@ -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();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue