< prev index next >
src/hotspot/share/services/attachListener.hpp
Print this page
@@ -84,28 +84,28 @@
private:
static volatile AttachListenerState _state;
public:
static void set_state(AttachListenerState new_state) {
- Atomic::store(new_state, &_state);
+ Atomic::store(&_state, new_state);
}
static AttachListenerState get_state() {
return Atomic::load(&_state);
}
static AttachListenerState transit_state(AttachListenerState new_state,
AttachListenerState cmp_state) {
- return Atomic::cmpxchg(new_state, &_state, cmp_state);
+ return Atomic::cmpxchg(&_state, cmp_state, new_state);
}
static bool is_initialized() {
return Atomic::load(&_state) == AL_INITIALIZED;
}
static void set_initialized() {
- Atomic::store(AL_INITIALIZED, &_state);
+ Atomic::store(&_state, AL_INITIALIZED);
}
// indicates if this VM supports attach-on-demand
static bool is_attach_supported() { return !DisableAttachMechanism; }
< prev index next >