changeset 4368:d8d6b3de346b

Add another #ifdef GRAAL
author Thomas Wuerthinger <thomas.wuerthinger@oracle.com>
date Thu, 26 Jan 2012 17:26:42 +0100
parents 2d7544ea8ed9
children efc430d943c0
files src/share/vm/prims/jni.cpp
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/vm/prims/jni.cpp	Thu Jan 26 17:17:42 2012 +0100
+++ b/src/share/vm/prims/jni.cpp	Thu Jan 26 17:26:42 2012 +0100
@@ -5124,11 +5124,13 @@
     *vm = (JavaVM *)(&main_vm);
     *(JNIEnv**)penv = thread->jni_environment();
 
+#ifdef GRAAL
     if (UseGraal) {
       GraalCompiler* compiler = GraalCompiler::instance();
       ciObjectFactory::initialize(); 
       compiler->initialize();
     }
+#endif
 
     // Tracks the time application was running before GC
     RuntimeService::record_application_start();