src/hotspot/cpu/sparc/frame_sparc.cpp
changeset 51263 b5aac518b097
parent 47560 e4a5b535c0d2
child 54437 2ae93028bef3
equal deleted inserted replaced
51262:d4b9a434af84 51263:b5aac518b097
     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.
   646   // first the method
   646   // first the method
   647 
   647 
   648   Method* m = *interpreter_frame_method_addr();
   648   Method* m = *interpreter_frame_method_addr();
   649 
   649 
   650   // validate the method we'd find in this potential sender
   650   // validate the method we'd find in this potential sender
   651   if (!m->is_valid_method()) return false;
   651   if (!Method::is_valid_method(m)) return false;
   652 
   652 
   653   // stack frames shouldn't be much larger than max_stack elements
   653   // stack frames shouldn't be much larger than max_stack elements
   654 
   654 
   655   if (fp() - unextended_sp() > 1024 + m->max_stack()*Interpreter::stackElementSize) {
   655   if (fp() - unextended_sp() > 1024 + m->max_stack()*Interpreter::stackElementSize) {
   656     return false;
   656     return false;