Mercurial > hg > graal-jvmci-8
comparison src/share/vm/prims/jni.cpp @ 3650:0e8a2a629afb
Pass-by compilation broker.
author | Thomas Wuerthinger <thomas.wuerthinger@oracle.com> |
---|---|
date | Wed, 16 Nov 2011 21:27:28 +0100 |
parents | 85625aff715b |
children | 04b9a2566eec |
comparison
equal
deleted
inserted
replaced
3649:5a8c44b5fb80 | 3650:0e8a2a629afb |
---|---|
3359 JavaThread *thread = JavaThread::current(); | 3359 JavaThread *thread = JavaThread::current(); |
3360 /* thread is thread_in_vm here */ | 3360 /* thread is thread_in_vm here */ |
3361 *vm = (JavaVM *)(&main_vm); | 3361 *vm = (JavaVM *)(&main_vm); |
3362 *(JNIEnv**)penv = thread->jni_environment(); | 3362 *(JNIEnv**)penv = thread->jni_environment(); |
3363 | 3363 |
3364 if (UseGraal) { | |
3365 GraalCompiler* compiler = GraalCompiler::instance(); | |
3366 ciObjectFactory::initialize(); | |
3367 compiler->initialize(); | |
3368 } | |
3369 | |
3364 // Tracks the time application was running before GC | 3370 // Tracks the time application was running before GC |
3365 RuntimeService::record_application_start(); | 3371 RuntimeService::record_application_start(); |
3366 | 3372 |
3367 // Notify JVMTI | 3373 // Notify JVMTI |
3368 if (JvmtiExport::should_post_thread_life()) { | 3374 if (JvmtiExport::should_post_thread_life()) { |
3369 JvmtiExport::post_thread_start(thread); | 3375 JvmtiExport::post_thread_start(thread); |
3370 } | |
3371 | |
3372 if (UseGraal && BootstrapGraal) { | |
3373 CompileBroker::bootstrap_graal(); | |
3374 } | 3376 } |
3375 | 3377 |
3376 // Check if we should compile all classes on bootclasspath | 3378 // Check if we should compile all classes on bootclasspath |
3377 NOT_PRODUCT(if (CompileTheWorld) ClassLoader::compile_the_world();) | 3379 NOT_PRODUCT(if (CompileTheWorld) ClassLoader::compile_the_world();) |
3378 // Since this is not a JVM_ENTRY we have to set the thread state manually before leaving. | 3380 // Since this is not a JVM_ENTRY we have to set the thread state manually before leaving. |