src/hotspot/share/services/attachListener.hpp
changeset 59248 e92153ed8bdc
parent 55682 70fab3a8ff02
child 59252 623722a6aeb9
--- a/src/hotspot/share/services/attachListener.hpp	Mon Nov 25 12:22:13 2019 +0100
+++ b/src/hotspot/share/services/attachListener.hpp	Mon Nov 25 12:30:24 2019 +0100
@@ -86,7 +86,7 @@
 
  public:
   static void set_state(AttachListenerState new_state) {
-    Atomic::store(new_state, &_state);
+    Atomic::store(&_state, new_state);
   }
 
   static AttachListenerState get_state() {
@@ -103,7 +103,7 @@
   }
 
   static void set_initialized() {
-    Atomic::store(AL_INITIALIZED, &_state);
+    Atomic::store(&_state, AL_INITIALIZED);
   }
 
   // indicates if this VM supports attach-on-demand