equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 1997, 2017, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1997, 2018, Oracle and/or its affiliates. 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. |
524 // first the method |
524 // first the method |
525 |
525 |
526 Method* m = *interpreter_frame_method_addr(); |
526 Method* m = *interpreter_frame_method_addr(); |
527 |
527 |
528 // validate the method we'd find in this potential sender |
528 // validate the method we'd find in this potential sender |
529 if (!m->is_valid_method()) return false; |
529 if (!Method::is_valid_method(m)) return false; |
530 |
530 |
531 // stack frames shouldn't be much larger than max_stack elements |
531 // stack frames shouldn't be much larger than max_stack elements |
532 // this test requires the use the unextended_sp which is the sp as seen by |
532 // this test requires the use the unextended_sp which is the sp as seen by |
533 // the current frame, and not sp which is the "raw" pc which could point |
533 // the current frame, and not sp which is the "raw" pc which could point |
534 // further because of local variables of the callee method inserted after |
534 // further because of local variables of the callee method inserted after |