hotspot/src/share/vm/opto/bytecodeInfo.cpp
changeset 5687 b862d1f189bd
parent 5420 586d3988e72b
child 5688 9052dc91ea67
equal deleted inserted replaced
5686:5435e77aa3df 5687:b862d1f189bd
     1 /*
     1 /*
     2  * Copyright 1998-2009 Sun Microsystems, Inc.  All Rights Reserved.
     2  * Copyright 1998-2010 Sun Microsystems, Inc.  All Rights Reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.
     7  * published by the Free Software Foundation.
   186     }
   186     }
   187 
   187 
   188     return NULL;
   188     return NULL;
   189   }
   189   }
   190 
   190 
   191   // Always inline MethodHandle methods.
   191   // Always inline MethodHandle methods and generated MethodHandle adapters.
   192   if (callee_method->is_method_handle_invoke())
   192   if (callee_method->is_method_handle_invoke() || callee_method->is_method_handle_adapter())
   193     return NULL;
   193     return NULL;
   194 
   194 
   195   // First check all inlining restrictions which are required for correctness
   195   // First check all inlining restrictions which are required for correctness
   196   if (callee_method->is_abstract())               return "abstract method";
   196   if (callee_method->is_abstract())               return "abstract method";
   197   // note: we allow ik->is_abstract()
   197   // note: we allow ik->is_abstract()