diff src/share/vm/graal/graalCompiler.cpp @ 4463:6616513a42de

bugfixes
author Christian Haeubl <christian.haeubl@oracle.com>
date Thu, 02 Feb 2012 19:50:18 -0800
parents 48756b901156
children a7a16015e47f
line wrap: on
line diff
--- a/src/share/vm/graal/graalCompiler.cpp	Thu Feb 02 17:46:37 2012 -0800
+++ b/src/share/vm/graal/graalCompiler.cpp	Thu Feb 02 19:50:18 2012 -0800
@@ -29,6 +29,7 @@
 #include "graal/graalVmIds.hpp"
 #include "graal/graalEnv.hpp"
 #include "c1/c1_Runtime1.hpp"
+#include "compiler/compilerOracle.hpp"
 #include "runtime/arguments.hpp"
 
 GraalCompiler* GraalCompiler::_instance = NULL;
@@ -270,7 +271,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, true);
+  HotSpotMethodResolved::set_canBeInlined(obj, !CompilerOracle::should_not_inline(method));
   
   method->set_graal_mirror(obj());
   return obj;