Mercurial > hg > truffle
comparison src/share/vm/prims/jni.cpp @ 4368:d8d6b3de346b
Add another #ifdef GRAAL
author | Thomas Wuerthinger <thomas.wuerthinger@oracle.com> |
---|---|
date | Thu, 26 Jan 2012 17:26:42 +0100 |
parents | 04b9a2566eec |
children | 723df37192d6 |
comparison
equal
deleted
inserted
replaced
4367:2d7544ea8ed9 | 4368:d8d6b3de346b |
---|---|
5122 JavaThread *thread = JavaThread::current(); | 5122 JavaThread *thread = JavaThread::current(); |
5123 /* thread is thread_in_vm here */ | 5123 /* thread is thread_in_vm here */ |
5124 *vm = (JavaVM *)(&main_vm); | 5124 *vm = (JavaVM *)(&main_vm); |
5125 *(JNIEnv**)penv = thread->jni_environment(); | 5125 *(JNIEnv**)penv = thread->jni_environment(); |
5126 | 5126 |
5127 #ifdef GRAAL | |
5127 if (UseGraal) { | 5128 if (UseGraal) { |
5128 GraalCompiler* compiler = GraalCompiler::instance(); | 5129 GraalCompiler* compiler = GraalCompiler::instance(); |
5129 ciObjectFactory::initialize(); | 5130 ciObjectFactory::initialize(); |
5130 compiler->initialize(); | 5131 compiler->initialize(); |
5131 } | 5132 } |
5133 #endif | |
5132 | 5134 |
5133 // Tracks the time application was running before GC | 5135 // Tracks the time application was running before GC |
5134 RuntimeService::record_application_start(); | 5136 RuntimeService::record_application_start(); |
5135 | 5137 |
5136 // Notify JVMTI | 5138 // Notify JVMTI |