Mercurial > hg > truffle
diff src/share/vm/graal/graalVMToCompiler.cpp @ 5176:af59b4dfc9e4
compilation queue changes:
* new CiCompilationStatistics
* added new HotSpot compilation policy (-XX:CompilationPolicyChoice=4)
* compile queue prioritizing (-G:+PriorityCompileQueue)
* low-priority compilation threads (-G:+SlowCompileThreads)
* dynamic compilation thread priority adjustment (-G:+DynamicCompilePriority)
author | Lukas Stadler <lukas.stadler@jku.at> |
---|---|
date | Thu, 29 Mar 2012 18:43:30 +0200 |
parents | 227aa994f058 |
children | 74dfa6f86879 |
line wrap: on
line diff
--- a/src/share/vm/graal/graalVMToCompiler.cpp Thu Mar 29 13:23:34 2012 +0200 +++ b/src/share/vm/graal/graalVMToCompiler.cpp Thu Mar 29 18:43:30 2012 +0200 @@ -97,7 +97,7 @@ check_pending_exception("Error while calling setDefaultOptions"); } -jboolean VMToCompiler::compileMethod(Handle hotspot_method, int entry_bci, jboolean blocking) { +jboolean VMToCompiler::compileMethod(Handle hotspot_method, int entry_bci, jboolean blocking, int priority) { assert(!hotspot_method.is_null(), "just checking"); Thread* THREAD = Thread::current(); JavaValue result(T_BOOLEAN); @@ -106,6 +106,7 @@ args.push_oop(hotspot_method); args.push_int(entry_bci); args.push_int(blocking); + args.push_int(priority); JavaCalls::call_interface(&result, vmExitsKlass(), vmSymbols::compileMethod_name(), vmSymbols::compileMethod_signature(), &args, THREAD); check_pending_exception("Error while calling compileMethod"); return result.get_jboolean();