Mercurial > hg > truffle
diff 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 |
line wrap: on
line diff
--- a/src/share/vm/prims/jni.cpp Thu Apr 24 17:09:39 2014 +0200 +++ b/src/share/vm/prims/jni.cpp Thu Apr 24 17:31:25 2014 +0200 @@ -5176,6 +5176,9 @@ #ifdef GRAAL // GraalCompiler needs to have been created in compileBroker.cpp GraalCompiler* graal_compiler = GraalCompiler::instance(); + if (ForceGraalInitialization && graal_compiler == NULL) { + graal_compiler = new GraalCompiler(); + } if (graal_compiler != NULL) { graal_compiler->initialize(); } else {