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 7 * published by the Free Software Foundation. 8 * 9 * This code is distributed in the hope that it will be useful, but WITHOUT 10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 12 * version 2 for more details (a copy is included in the LICENSE file that 13 * accompanied this code). 14 * 15 * You should have received a copy of the GNU General Public License version 16 * 2 along with this work; if not, write to the Free Software Foundation, 17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 18 * 19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 20 * or visit www.oracle.com if you need additional information or have any 21 * questions. 22 * 23 */ 24 25 # include "incls/_precompiled.incl" 26 # include "incls/_vframeArray.cpp.incl" 27 28 29 int vframeArrayElement:: bci(void) const { return (_bci == SynchronizationEntryBCI ? 0 : _bci); } 30 31 void vframeArrayElement::free_monitors(JavaThread* jt) { 32 if (_monitors != NULL) { 33 MonitorChunk* chunk = _monitors; 34 _monitors = NULL; 35 jt->remove_monitor_chunk(chunk); 36 delete chunk; 37 } 38 } 39 40 void vframeArrayElement::fill_in(compiledVFrame* vf) { 41 42 // Copy the information from the compiled vframe to the 43 // interpreter frame we will be creating to replace vf 44 45 _method = vf->method(); 46 _bci = vf->raw_bci(); | 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 7 * published by the Free Software Foundation. 8 * 9 * This code is distributed in the hope that it will be useful, but WITHOUT 10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 12 * version 2 for more details (a copy is included in the LICENSE file that 13 * accompanied this code). 14 * 15 * You should have received a copy of the GNU General Public License version 16 * 2 along with this work; if not, write to the Free Software Foundation, 17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 18 * 19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 20 * or visit www.oracle.com if you need additional information or have any 21 * questions. 22 * 23 */ 24 25 #include "precompiled.hpp" 26 #include "classfile/vmSymbols.hpp" 27 #include "interpreter/interpreter.hpp" 28 #include "memory/allocation.inline.hpp" 29 #include "memory/resourceArea.hpp" 30 #include "memory/universe.inline.hpp" 31 #include "oops/methodDataOop.hpp" 32 #include "oops/oop.inline.hpp" 33 #include "prims/jvmtiThreadState.hpp" 34 #include "runtime/handles.inline.hpp" 35 #include "runtime/monitorChunk.hpp" 36 #include "runtime/sharedRuntime.hpp" 37 #include "runtime/vframe.hpp" 38 #include "runtime/vframeArray.hpp" 39 #include "runtime/vframe_hp.hpp" 40 #include "utilities/events.hpp" 41 #ifdef COMPILER2 42 #include "opto/runtime.hpp" 43 #endif 44 45 46 int vframeArrayElement:: bci(void) const { return (_bci == SynchronizationEntryBCI ? 0 : _bci); } 47 48 void vframeArrayElement::free_monitors(JavaThread* jt) { 49 if (_monitors != NULL) { 50 MonitorChunk* chunk = _monitors; 51 _monitors = NULL; 52 jt->remove_monitor_chunk(chunk); 53 delete chunk; 54 } 55 } 56 57 void vframeArrayElement::fill_in(compiledVFrame* vf) { 58 59 // Copy the information from the compiled vframe to the 60 // interpreter frame we will be creating to replace vf 61 62 _method = vf->method(); 63 _bci = vf->raw_bci(); |