58 #include "utilities/events.hpp" 59 #ifdef TARGET_ARCH_x86 60 # include "vm_version_x86.hpp" 61 #endif 62 #ifdef TARGET_ARCH_sparc 63 # include "vm_version_sparc.hpp" 64 #endif 65 #ifdef TARGET_ARCH_zero 66 # include "vm_version_zero.hpp" 67 #endif 68 #ifdef TARGET_ARCH_arm 69 # include "vm_version_arm.hpp" 70 #endif 71 #ifdef TARGET_ARCH_ppc 72 # include "vm_version_ppc.hpp" 73 #endif 74 #ifdef COMPILER2 75 #include "opto/runtime.hpp" 76 #endif 77 78 class UnlockFlagSaver { 79 private: 80 JavaThread* _thread; 81 bool _do_not_unlock; 82 public: 83 UnlockFlagSaver(JavaThread* t) { 84 _thread = t; 85 _do_not_unlock = t->do_not_unlock_if_synchronized(); 86 t->set_do_not_unlock_if_synchronized(false); 87 } 88 ~UnlockFlagSaver() { 89 _thread->set_do_not_unlock_if_synchronized(_do_not_unlock); 90 } 91 }; 92 93 //------------------------------------------------------------------------------------------------------------------------ 94 // State accessors 95 96 void InterpreterRuntime::set_bcp_and_mdp(address bcp, JavaThread *thread) { 97 last_frame(thread).interpreter_frame_set_bcp(bcp); | 58 #include "utilities/events.hpp" 59 #ifdef TARGET_ARCH_x86 60 # include "vm_version_x86.hpp" 61 #endif 62 #ifdef TARGET_ARCH_sparc 63 # include "vm_version_sparc.hpp" 64 #endif 65 #ifdef TARGET_ARCH_zero 66 # include "vm_version_zero.hpp" 67 #endif 68 #ifdef TARGET_ARCH_arm 69 # include "vm_version_arm.hpp" 70 #endif 71 #ifdef TARGET_ARCH_ppc 72 # include "vm_version_ppc.hpp" 73 #endif 74 #ifdef COMPILER2 75 #include "opto/runtime.hpp" 76 #endif 77 78 PRAGMA_FORMAT_MUTE_WARNINGS_FOR_GCC 79 80 class UnlockFlagSaver { 81 private: 82 JavaThread* _thread; 83 bool _do_not_unlock; 84 public: 85 UnlockFlagSaver(JavaThread* t) { 86 _thread = t; 87 _do_not_unlock = t->do_not_unlock_if_synchronized(); 88 t->set_do_not_unlock_if_synchronized(false); 89 } 90 ~UnlockFlagSaver() { 91 _thread->set_do_not_unlock_if_synchronized(_do_not_unlock); 92 } 93 }; 94 95 //------------------------------------------------------------------------------------------------------------------------ 96 // State accessors 97 98 void InterpreterRuntime::set_bcp_and_mdp(address bcp, JavaThread *thread) { 99 last_frame(thread).interpreter_frame_set_bcp(bcp); |