diff src/share/vm/graal/graalCompiler.cpp @ 5105:95b8a32a7cc3

preparations to avoid endless recompilations because of not updated profiling information
author Christian Haeubl <christian.haeubl@oracle.com>
date Mon, 12 Mar 2012 18:40:05 -0700
parents 5e9f38419819
children ab038e0d6b43
line wrap: on
line diff
--- a/src/share/vm/graal/graalCompiler.cpp	Fri Mar 09 13:14:54 2012 -0800
+++ b/src/share/vm/graal/graalCompiler.cpp	Mon Mar 12 18:40:05 2012 -0700
@@ -276,7 +276,7 @@
   HotSpotMethodResolved::set_accessFlags(obj, method->access_flags().as_int());
   HotSpotMethodResolved::set_maxLocals(obj, method->max_locals());
   HotSpotMethodResolved::set_maxStackSize(obj, method->max_stack());
-  HotSpotMethodResolved::set_canBeInlined(obj, !CompilerOracle::should_not_inline(method));
+  HotSpotMethodResolved::set_canBeInlined(obj, !method->is_not_compilable() && !CompilerOracle::should_not_inline(method));
   
   method->set_graal_mirror(obj());
   return obj;