Mercurial > hg > graal-compiler
comparison src/share/vm/graal/graalCompiler.cpp @ 16014:c1a47bf45b66
do not start/stop Graal compilation queue if -XX:-UseGraalCompilationQueue
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Wed, 04 Jun 2014 15:58:04 +0200 |
parents | 66a9286203a2 |
children | e54507c88a93 |
comparison
equal
deleted
inserted
replaced
16013:dd5c15b85f78 | 16014:c1a47bf45b66 |
---|---|
62 { | 62 { |
63 HandleMark hm; | 63 HandleMark hm; |
64 | 64 |
65 _bootstrapping = UseGraalCompilationQueue && (FLAG_IS_DEFAULT(BootstrapGraal) ? !TieredCompilation : BootstrapGraal); | 65 _bootstrapping = UseGraalCompilationQueue && (FLAG_IS_DEFAULT(BootstrapGraal) ? !TieredCompilation : BootstrapGraal); |
66 | 66 |
67 start_compilation_queue(); | 67 if (UseGraalCompilationQueue) { |
68 start_compilation_queue(); | |
69 } | |
68 | 70 |
69 // Graal is considered as application code so we need to | 71 // Graal is considered as application code so we need to |
70 // stop the VM deferring compilation now. | 72 // stop the VM deferring compilation now. |
71 CompilationPolicy::completed_vm_startup(); | 73 CompilationPolicy::completed_vm_startup(); |
72 | 74 |
152 void GraalCompiler::compile_method(ciEnv* env, ciMethod* target, int entry_bci) { | 154 void GraalCompiler::compile_method(ciEnv* env, ciMethod* target, int entry_bci) { |
153 ShouldNotReachHere(); | 155 ShouldNotReachHere(); |
154 } | 156 } |
155 | 157 |
156 void GraalCompiler::shutdown() { | 158 void GraalCompiler::shutdown() { |
157 shutdown_compilation_queue(); | 159 if (UseGraalCompilationQueue) { |
160 shutdown_compilation_queue(); | |
161 } | |
158 } | 162 } |
159 | 163 |
160 // Print compilation timers and statistics | 164 // Print compilation timers and statistics |
161 void GraalCompiler::print_timers() { | 165 void GraalCompiler::print_timers() { |
162 TRACE_graal_1("GraalCompiler::print_timers"); | 166 TRACE_graal_1("GraalCompiler::print_timers"); |