changeset 59252 | 623722a6aeb9 |
parent 59248 | e92153ed8bdc |
--- a/src/hotspot/share/services/attachListener.hpp Mon Nov 25 12:32:40 2019 +0100 +++ b/src/hotspot/share/services/attachListener.hpp Mon Nov 25 12:33:15 2019 +0100 @@ -95,7 +95,7 @@ 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() {