Mercurial > hg > truffle
comparison src/share/vm/compiler/compileBroker.cpp @ 13089:77fbf02f701c
re-enabled protection against recursive Graal compilation requests with Graal specific _graal_compiling field in JavaThread
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Wed, 20 Nov 2013 19:27:49 +0100 |
parents | 096c224171c4 |
children | 91933915d1d0 |
comparison
equal
deleted
inserted
replaced
13088:514e809bd97d | 13089:77fbf02f701c |
---|---|
1141 // by a compiler thread), and compiled method registration. | 1141 // by a compiler thread), and compiled method registration. |
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 // Detect recursive request in Java | 1146 if (!JavaThread::current()->is_graal_compiling()) { |
1147 GraalCompiler::instance()->compile_method(method, osr_bci, is_compile_blocking(method, osr_bci)); | 1147 GraalCompiler::instance()->compile_method(method, osr_bci, is_compile_blocking(method, osr_bci)); |
1148 } else { | |
1149 // Recursive compile request => ignore. | |
1150 } | |
1148 #else | 1151 #else |
1149 | 1152 |
1150 // Outputs from the following MutexLocker block: | 1153 // Outputs from the following MutexLocker block: |
1151 CompileTask* task = NULL; | 1154 CompileTask* task = NULL; |
1152 bool blocking = false; | 1155 bool blocking = false; |