Mercurial > hg > truffle
comparison src/share/vm/graal/graalCompiler.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 | 482265e41a1a |
children | af07e798947d |
comparison
equal
deleted
inserted
replaced
5175:a8c5283a835c | 5176:af59b4dfc9e4 |
---|---|
162 ResourceMark rm; | 162 ResourceMark rm; |
163 ciEnv* current_env = JavaThread::current()->env(); | 163 ciEnv* current_env = JavaThread::current()->env(); |
164 JavaThread::current()->set_env(NULL); | 164 JavaThread::current()->set_env(NULL); |
165 JavaThread::current()->set_compiling(true); | 165 JavaThread::current()->set_compiling(true); |
166 Handle hotspot_method = GraalCompiler::createHotSpotMethodResolved(method, CHECK); | 166 Handle hotspot_method = GraalCompiler::createHotSpotMethodResolved(method, CHECK); |
167 jboolean success = VMToCompiler::compileMethod(hotspot_method, entry_bci, blocking); | 167 jboolean success = VMToCompiler::compileMethod(hotspot_method, entry_bci, blocking, method->graal_priority()); |
168 JavaThread::current()->set_compiling(false); | 168 JavaThread::current()->set_compiling(false); |
169 JavaThread::current()->set_env(current_env); | 169 JavaThread::current()->set_env(current_env); |
170 if (success != JNI_TRUE) { | 170 if (success != JNI_TRUE) { |
171 method->clear_queued_for_compilation(); | 171 method->clear_queued_for_compilation(); |
172 CompilationPolicy::policy()->delay_compilation(method()); | 172 CompilationPolicy::policy()->delay_compilation(method()); |