src/share/vm/opto/bytecodeInfo.cpp

changeset 1919
61b2245abf36
parent 1862
cd5dbf694d45
child 1920
ab102d5d923e
equal deleted inserted replaced
1918:1a5913bf5e19 1919:61b2245abf36
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()

mercurial