Mercurial > hg > truffle
comparison src/share/vm/prims/jni.cpp @ 15365:0aed1c2d0caa
graal init: add flag to force compiler initialization
author | Bernhard Urban <bernhard.urban@jku.at> |
---|---|
date | Thu, 24 Apr 2014 17:31:25 +0200 |
parents | 4ca6dc0799b6 |
children | a20be10ad437 |
comparison
equal
deleted
inserted
replaced
15364:9693513ce95c | 15365:0aed1c2d0caa |
---|---|
5174 *(JNIEnv**)penv = thread->jni_environment(); | 5174 *(JNIEnv**)penv = thread->jni_environment(); |
5175 | 5175 |
5176 #ifdef GRAAL | 5176 #ifdef GRAAL |
5177 // GraalCompiler needs to have been created in compileBroker.cpp | 5177 // GraalCompiler needs to have been created in compileBroker.cpp |
5178 GraalCompiler* graal_compiler = GraalCompiler::instance(); | 5178 GraalCompiler* graal_compiler = GraalCompiler::instance(); |
5179 if (ForceGraalInitialization && graal_compiler == NULL) { | |
5180 graal_compiler = new GraalCompiler(); | |
5181 } | |
5179 if (graal_compiler != NULL) { | 5182 if (graal_compiler != NULL) { |
5180 graal_compiler->initialize(); | 5183 graal_compiler->initialize(); |
5181 } else { | 5184 } else { |
5182 assert(!UseCompiler, "why isn't there any compiler?"); | 5185 assert(!UseCompiler, "why isn't there any compiler?"); |
5183 } | 5186 } |