Mercurial > hg > truffle
comparison src/share/vm/compiler/compileBroker.cpp @ 13731:9161ed8ce796
Add graal-specific option -XX:+GPUOffload to trigger all GPU offload functionality. Cleanup function to decide GPU offload. Exclude GPU sources from nongraal builds.
author | S.Bharadwaj Yadavalli <bharadwaj.yadavalli@oracle.com> |
---|---|
date | Wed, 22 Jan 2014 16:06:47 -0500 |
parents | 5a4293f24642 |
children | fe034af88233 |
comparison
equal
deleted
inserted
replaced
13730:168976cae9ce | 13731:9161ed8ce796 |
---|---|
1142 if (InstanceRefKlass::owns_pending_list_lock(JavaThread::current())) { | 1142 if (InstanceRefKlass::owns_pending_list_lock(JavaThread::current())) { |
1143 return; | 1143 return; |
1144 } | 1144 } |
1145 #ifdef GRAALVM | 1145 #ifdef GRAALVM |
1146 if (!JavaThread::current()->is_graal_compiling()) { | 1146 if (!JavaThread::current()->is_graal_compiling()) { |
1147 GraalCompiler::instance()->compile_method(method, osr_bci, is_compile_blocking(method, osr_bci)); | 1147 bool blockingCompilation = is_compile_blocking(method, osr_bci) || |
1148 CompilationPolicy::can_be_offloaded_to_gpu(method); | |
1149 GraalCompiler::instance()->compile_method(method, osr_bci, blockingCompilation); | |
1148 } else { | 1150 } else { |
1149 // Recursive compile request => ignore. | 1151 // Recursive compile request => ignore. |
1150 } | 1152 } |
1151 #else | 1153 #else |
1152 | 1154 |