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 |