diff 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
line wrap: on
line diff
--- a/src/share/vm/compiler/compileBroker.cpp	Fri Jan 11 16:47:23 2013 -0800
+++ b/src/share/vm/compiler/compileBroker.cpp	Fri Jan 11 16:47:23 2013 -0800
@@ -1218,7 +1218,7 @@
   // lock, make sure that the compilation
   // isn't prohibited in a straightforward way.
 
-  if (compiler(comp_level) == NULL || compilation_is_prohibited(method, osr_bci, comp_level)) {
+  if (compiler(comp_level) == NULL || !compiler(comp_level)->can_compile_method(method) || compilation_is_prohibited(method, osr_bci, comp_level)) {
     return NULL;
   }