src/hotspot/cpu/arm/frame_arm.cpp
changeset 51263 b5aac518b097
parent 47216 71c04702a3d5
child 52351 0ecb4e520110
equal deleted inserted replaced
51262:d4b9a434af84 51263:b5aac518b097
     1 /*
     1 /*
     2  * Copyright (c) 2008, 2017, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2008, 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.
   498   // first the method
   498   // first the method
   499 
   499 
   500   Method* m = *interpreter_frame_method_addr();
   500   Method* m = *interpreter_frame_method_addr();
   501 
   501 
   502   // validate the method we'd find in this potential sender
   502   // validate the method we'd find in this potential sender
   503   if (!m->is_valid_method()) return false;
   503   if (!Method::is_valid_method(m)) return false;
   504 
   504 
   505   // stack frames shouldn't be much larger than max_stack elements
   505   // stack frames shouldn't be much larger than max_stack elements
   506 
   506 
   507   if (fp() - sp() > 1024 + m->max_stack()*Interpreter::stackElementSize) {
   507   if (fp() - sp() > 1024 + m->max_stack()*Interpreter::stackElementSize) {
   508     return false;
   508     return false;