1 /* |
1 /* |
2 * Copyright 1997-2009 Sun Microsystems, Inc. All Rights Reserved. |
2 * Copyright 1997-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. |
430 // This is Method.invoke() -- skip it |
430 // This is Method.invoke() -- skip it |
431 } else if (use_new_reflection && |
431 } else if (use_new_reflection && |
432 Klass::cast(method()->method_holder()) |
432 Klass::cast(method()->method_holder()) |
433 ->is_subclass_of(SystemDictionary::reflect_MethodAccessorImpl_klass())) { |
433 ->is_subclass_of(SystemDictionary::reflect_MethodAccessorImpl_klass())) { |
434 // This is an auxilary frame -- skip it |
434 // This is an auxilary frame -- skip it |
|
435 } else if (method()->is_method_handle_adapter()) { |
|
436 // This is an internal adapter frame from the MethodHandleCompiler -- skip it |
435 } else { |
437 } else { |
436 // This is non-excluded frame, we need to count it against the depth |
438 // This is non-excluded frame, we need to count it against the depth |
437 if (depth-- <= 0) { |
439 if (depth-- <= 0) { |
438 // we have reached the desired depth, we are done |
440 // we have reached the desired depth, we are done |
439 break; |
441 break; |