Mercurial > hg > graal-jvmci-8
diff 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 |
line wrap: on
line diff
--- a/src/share/vm/compiler/compileBroker.cpp Wed Jan 22 15:27:31 2014 +0100 +++ b/src/share/vm/compiler/compileBroker.cpp Wed Jan 22 16:06:47 2014 -0500 @@ -1144,7 +1144,9 @@ } #ifdef GRAALVM if (!JavaThread::current()->is_graal_compiling()) { - GraalCompiler::instance()->compile_method(method, osr_bci, is_compile_blocking(method, osr_bci)); + bool blockingCompilation = is_compile_blocking(method, osr_bci) || + CompilationPolicy::can_be_offloaded_to_gpu(method); + GraalCompiler::instance()->compile_method(method, osr_bci, blockingCompilation); } else { // Recursive compile request => ignore. }