< prev index next >

src/share/vm/runtime/safepoint.cpp

Print this page




  56 #ifdef TARGET_ARCH_x86
  57 # include "nativeInst_x86.hpp"
  58 # include "vmreg_x86.inline.hpp"
  59 #endif
  60 #ifdef TARGET_ARCH_sparc
  61 # include "nativeInst_sparc.hpp"
  62 # include "vmreg_sparc.inline.hpp"
  63 #endif
  64 #ifdef TARGET_ARCH_zero
  65 # include "nativeInst_zero.hpp"
  66 # include "vmreg_zero.inline.hpp"
  67 #endif
  68 #ifdef TARGET_ARCH_arm
  69 # include "nativeInst_arm.hpp"
  70 # include "vmreg_arm.inline.hpp"
  71 #endif
  72 #ifdef TARGET_ARCH_ppc
  73 # include "nativeInst_ppc.hpp"
  74 # include "vmreg_ppc.inline.hpp"
  75 #endif




  76 #if INCLUDE_ALL_GCS
  77 #include "gc_implementation/concurrentMarkSweep/concurrentMarkSweepThread.hpp"
  78 #include "gc_implementation/shared/suspendibleThreadSet.hpp"
  79 #endif // INCLUDE_ALL_GCS
  80 #ifdef COMPILER1
  81 #include "c1/c1_globals.hpp"
  82 #endif
  83 
  84 PRAGMA_FORMAT_MUTE_WARNINGS_FOR_GCC
  85 
  86 // --------------------------------------------------------------------------------------------------
  87 // Implementation of Safepoint begin/end
  88 
  89 SafepointSynchronize::SynchronizeState volatile SafepointSynchronize::_state = SafepointSynchronize::_not_synchronized;
  90 volatile int  SafepointSynchronize::_waiting_to_block = 0;
  91 volatile int SafepointSynchronize::_safepoint_counter = 0;
  92 int SafepointSynchronize::_current_jni_active_count = 0;
  93 long  SafepointSynchronize::_end_of_last_safepoint = 0;
  94 static volatile int PageArmed = 0 ;        // safepoint polling page is RO|RW vs PROT_NONE
  95 static volatile int TryingToBlock = 0 ;    // proximate value -- for advisory use only




  56 #ifdef TARGET_ARCH_x86
  57 # include "nativeInst_x86.hpp"
  58 # include "vmreg_x86.inline.hpp"
  59 #endif
  60 #ifdef TARGET_ARCH_sparc
  61 # include "nativeInst_sparc.hpp"
  62 # include "vmreg_sparc.inline.hpp"
  63 #endif
  64 #ifdef TARGET_ARCH_zero
  65 # include "nativeInst_zero.hpp"
  66 # include "vmreg_zero.inline.hpp"
  67 #endif
  68 #ifdef TARGET_ARCH_arm
  69 # include "nativeInst_arm.hpp"
  70 # include "vmreg_arm.inline.hpp"
  71 #endif
  72 #ifdef TARGET_ARCH_ppc
  73 # include "nativeInst_ppc.hpp"
  74 # include "vmreg_ppc.inline.hpp"
  75 #endif
  76 #ifdef TARGET_ARCH_aarch32
  77 # include "nativeInst_aarch32.hpp"
  78 # include "vmreg_aarch32.inline.hpp"
  79 #endif
  80 #if INCLUDE_ALL_GCS
  81 #include "gc_implementation/concurrentMarkSweep/concurrentMarkSweepThread.hpp"
  82 #include "gc_implementation/shared/suspendibleThreadSet.hpp"
  83 #endif // INCLUDE_ALL_GCS
  84 #ifdef COMPILER1
  85 #include "c1/c1_globals.hpp"
  86 #endif
  87 
  88 PRAGMA_FORMAT_MUTE_WARNINGS_FOR_GCC
  89 
  90 // --------------------------------------------------------------------------------------------------
  91 // Implementation of Safepoint begin/end
  92 
  93 SafepointSynchronize::SynchronizeState volatile SafepointSynchronize::_state = SafepointSynchronize::_not_synchronized;
  94 volatile int  SafepointSynchronize::_waiting_to_block = 0;
  95 volatile int SafepointSynchronize::_safepoint_counter = 0;
  96 int SafepointSynchronize::_current_jni_active_count = 0;
  97 long  SafepointSynchronize::_end_of_last_safepoint = 0;
  98 static volatile int PageArmed = 0 ;        // safepoint polling page is RO|RW vs PROT_NONE
  99 static volatile int TryingToBlock = 0 ;    // proximate value -- for advisory use only


< prev index next >