comparison src/share/vm/compiler/compileBroker.cpp @ 7601:606eada1bf86

8005820: Shark: enable JSR292 support Reviewed-by: twisti Contributed-by: Roman Kennke <rkennke@redhat.com>
author twisti
date Fri, 11 Jan 2013 16:47:23 -0800
parents 30866cd626b0
children eab4f9ed602c
comparison
equal deleted inserted replaced
7600:c095a7f289aa 7601:606eada1bf86
1216 // return quickly if possible 1216 // return quickly if possible
1217 1217
1218 // lock, make sure that the compilation 1218 // lock, make sure that the compilation
1219 // isn't prohibited in a straightforward way. 1219 // isn't prohibited in a straightforward way.
1220 1220
1221 if (compiler(comp_level) == NULL || compilation_is_prohibited(method, osr_bci, comp_level)) { 1221 if (compiler(comp_level) == NULL || !compiler(comp_level)->can_compile_method(method) || compilation_is_prohibited(method, osr_bci, comp_level)) {
1222 return NULL; 1222 return NULL;
1223 } 1223 }
1224 1224
1225 if (osr_bci == InvocationEntryBci) { 1225 if (osr_bci == InvocationEntryBci) {
1226 // standard compilation 1226 // standard compilation