src/hotspot/share/services/attachListener.hpp
changeset 59248 e92153ed8bdc
parent 55682 70fab3a8ff02
child 59252 623722a6aeb9
equal deleted inserted replaced
59247:56bf71d64d51 59248:e92153ed8bdc
    84  private:
    84  private:
    85   static volatile AttachListenerState _state;
    85   static volatile AttachListenerState _state;
    86 
    86 
    87  public:
    87  public:
    88   static void set_state(AttachListenerState new_state) {
    88   static void set_state(AttachListenerState new_state) {
    89     Atomic::store(new_state, &_state);
    89     Atomic::store(&_state, new_state);
    90   }
    90   }
    91 
    91 
    92   static AttachListenerState get_state() {
    92   static AttachListenerState get_state() {
    93     return Atomic::load(&_state);
    93     return Atomic::load(&_state);
    94   }
    94   }
   101   static bool is_initialized() {
   101   static bool is_initialized() {
   102     return Atomic::load(&_state) == AL_INITIALIZED;
   102     return Atomic::load(&_state) == AL_INITIALIZED;
   103   }
   103   }
   104 
   104 
   105   static void set_initialized() {
   105   static void set_initialized() {
   106     Atomic::store(AL_INITIALIZED, &_state);
   106     Atomic::store(&_state, AL_INITIALIZED);
   107   }
   107   }
   108 
   108 
   109   // indicates if this VM supports attach-on-demand
   109   // indicates if this VM supports attach-on-demand
   110   static bool is_attach_supported()             { return !DisableAttachMechanism; }
   110   static bool is_attach_supported()             { return !DisableAttachMechanism; }
   111 
   111