Mercurial > hg > graal-jvmci-8
comparison src/share/vm/prims/jni.cpp @ 22463:d9f5c93a83d3
Move Java based CTW out of hotspot
author | Tom Rodriguez <tom.rodriguez@oracle.com> |
---|---|
date | Mon, 24 Aug 2015 19:17:08 -0700 |
parents | cfd7ebda543b |
children | 939d5da65929 |
comparison
equal
deleted
inserted
replaced
22462:7a7dd51e7e0b | 22463:d9f5c93a83d3 |
---|---|
5207 JavaThread *thread = JavaThread::current(); | 5207 JavaThread *thread = JavaThread::current(); |
5208 /* thread is thread_in_vm here */ | 5208 /* thread is thread_in_vm here */ |
5209 *vm = (JavaVM *)(&main_vm); | 5209 *vm = (JavaVM *)(&main_vm); |
5210 *(JNIEnv**)penv = thread->jni_environment(); | 5210 *(JNIEnv**)penv = thread->jni_environment(); |
5211 | 5211 |
5212 #if INCLUDE_JVMCI | |
5213 // We turn off CompileTheWorld so that compilation requests are not ignored during bootstrap or that JVMCI can be compiled by C1/C2. | |
5214 bool doCTW = CompileTheWorld; | |
5215 CompileTheWorld = false; | |
5216 #endif | |
5217 | |
5218 #ifdef COMPILERJVMCI | 5212 #ifdef COMPILERJVMCI |
5219 // JVMCI is initialized on a CompilerThread | 5213 // JVMCI is initialized on a CompilerThread |
5220 if (BootstrapJVMCI) { | 5214 if (BootstrapJVMCI) { |
5221 JVMCICompiler::instance()->bootstrap(); | 5215 JVMCICompiler::instance()->bootstrap(); |
5222 } | |
5223 #elif INCLUDE_JVMCI | |
5224 if (doCTW) { | |
5225 // required for hosted CTW. | |
5226 CompilationPolicy::completed_vm_startup(); | |
5227 } | |
5228 #endif | |
5229 | |
5230 #if INCLUDE_JVMCI | |
5231 if (doCTW) { | |
5232 JVMCICompiler::instance()->compile_the_world(); | |
5233 } | 5216 } |
5234 #endif | 5217 #endif |
5235 | 5218 |
5236 // Tracks the time application was running before GC | 5219 // Tracks the time application was running before GC |
5237 RuntimeService::record_application_start(); | 5220 RuntimeService::record_application_start(); |