hotspot/src/share/vm/opto/bytecodeInfo.cpp
changeset 4567 7fc02fbe5c7a
parent 4566 b363f6ef4068
child 4586 f1c484fca023
--- a/hotspot/src/share/vm/opto/bytecodeInfo.cpp	Tue Jan 05 13:05:58 2010 +0100
+++ b/hotspot/src/share/vm/opto/bytecodeInfo.cpp	Tue Jan 05 15:21:25 2010 +0100
@@ -180,6 +180,10 @@
     return NULL;
   }
 
+  // Always inline MethodHandle methods.
+  if (callee_method->is_method_handle_invoke())
+    return NULL;
+
   // First check all inlining restrictions which are required for correctness
   if (callee_method->is_abstract())               return "abstract method";
   // note: we allow ik->is_abstract()