vframeArray.hpp revision 2772
2N/A * Copyright (c) 1997, 2011, Oracle and/or its affiliates. All rights reserved. 2N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 2N/A * This code is free software; you can redistribute it and/or modify it 2N/A * under the terms of the GNU General Public License version 2 only, as 2N/A * published by the Free Software Foundation. 2N/A * This code is distributed in the hope that it will be useful, but WITHOUT 2N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 2N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 2N/A * version 2 for more details (a copy is included in the LICENSE file that 2N/A * accompanied this code). 2N/A * You should have received a copy of the GNU General Public License version 2N/A * 2 along with this work; if not, write to the Free Software Foundation, 2N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 2N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 2N/A// A vframeArray is an array used for momentarily storing off stack Java method activations 2N/A// during deoptimization. Essentially it is an array of vframes where each vframe 2N/A// data is stored off stack. This structure will never exist across a safepoint so 2N/A// there is no need to gc any oops that are stored in the structure. 2N/A// A vframeArrayElement is an element of a vframeArray. Each element 2N/A// represent an interpreter frame which will eventually be created. 2N/A int _bci;
// raw bci for this vframe 2N/A // Formerly part of deoptimizedVFrame 2N/A // Returns the on stack word size for this frame 2N/A // callee_parameters is the number of callee locals residing inside this frame // Unpacks the element to skeletal interpreter frame // this can be a ResourceObj if we don't save the last one... // but it does make debugging easier even if we can't look // at the data in each vframeElement // Here is what a vframeArray looks like in memory description of the original frame _frames - number of vframes in this array callee register save area vframeArrayElement [_frames - 1] int _frames;
// number of javavframes in the array (does not count any adapter) // Tells whether index is within bounds. // Accessores for instance variable // Allocates a new vframe in the array and fills the array with vframe information in chunk // Returns the owner of this vframeArray // Accessors for unroll block // Returns the size of the frame that got deoptimized // Unpack the array on the stack passed in stack interval // Deallocates monitor chunks allocated during deoptimization. // This should be called when the array is not used anymore. // Accessor for register map #
endif // SHARE_VM_RUNTIME_VFRAMEARRAY_HPP