Mercurial > hg > truffle
changeset 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 | 9693513ce95c |
children | a2f4ffc18d9d c54f5fa05fd5 |
files | src/share/vm/graal/graalGlobals.hpp src/share/vm/prims/jni.cpp |
diffstat | 2 files changed, 6 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/share/vm/graal/graalGlobals.hpp Thu Apr 24 17:09:39 2014 +0200 +++ b/src/share/vm/graal/graalGlobals.hpp Thu Apr 24 17:31:25 2014 +0200 @@ -52,6 +52,9 @@ COMPILERGRAAL_PRESENT(product(bool, BootstrapGraal, true, \ "Bootstrap Graal before running Java main method")) \ \ + product(bool, ForceGraalInitialization, false, \ + "Force VM to initialize the Compiler although not used") \ + \ product(intx, TraceGraal, 0, \ "Trace level for Graal") \ \
--- 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 {