changeset 5407:80ae8033fe01

Perform compiler oracle should_not_inline check before heuristic checks
author Gilles Duboscq <duboscq@ssw.jku.at>
date Mon, 14 May 2012 16:16:12 +0200
parents 4485e0edd1af
children af76b75d5928
files src/share/vm/opto/bytecodeInfo.cpp
diffstat 1 files changed, 3 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/vm/opto/bytecodeInfo.cpp	Thu May 10 00:36:12 2012 +0200
+++ b/src/share/vm/opto/bytecodeInfo.cpp	Mon May 14 16:16:12 2012 +0200
@@ -240,6 +240,9 @@
     // ignore heuristic controls on inlining
     return NULL;
   }
+  if (callee_method->should_not_inline()) {
+    return "disallowed by CompilerOracle";
+  }
 
   // Now perform checks which are heuristic
 
@@ -278,10 +281,6 @@
     }
   }
 
-  if (callee_method->should_not_inline()) {
-    return "disallowed by CompilerOracle";
-  }
-
   if (UseStringCache) {
     // Do not inline StringCache::profile() method used only at the beginning.
     if (callee_method->name() == ciSymbol::profile_name() &&