< prev index next >

src/share/vm/interpreter/interpreterRuntime.cpp

Print this page




  54 #include "runtime/sharedRuntime.hpp"
  55 #include "runtime/stubRoutines.hpp"
  56 #include "runtime/synchronizer.hpp"
  57 #include "runtime/threadCritical.hpp"
  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 };




  54 #include "runtime/sharedRuntime.hpp"
  55 #include "runtime/stubRoutines.hpp"
  56 #include "runtime/synchronizer.hpp"
  57 #include "runtime/threadCritical.hpp"
  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 TARGET_ARCH_aarch32
  75 # include "vm_version_aarch32.hpp"
  76 #endif
  77 #ifdef COMPILER2
  78 #include "opto/runtime.hpp"
  79 #endif
  80 
  81 PRAGMA_FORMAT_MUTE_WARNINGS_FOR_GCC
  82 
  83 class UnlockFlagSaver {
  84   private:
  85     JavaThread* _thread;
  86     bool _do_not_unlock;
  87   public:
  88     UnlockFlagSaver(JavaThread* t) {
  89       _thread = t;
  90       _do_not_unlock = t->do_not_unlock_if_synchronized();
  91       t->set_do_not_unlock_if_synchronized(false);
  92     }
  93     ~UnlockFlagSaver() {
  94       _thread->set_do_not_unlock_if_synchronized(_do_not_unlock);
  95     }
  96 };


< prev index next >