src/hotspot/share/gc/shared/taskqueue.inline.hpp
changeset 59252 623722a6aeb9
parent 59247 56bf71d64d51
--- a/src/hotspot/share/gc/shared/taskqueue.inline.hpp	Mon Nov 25 12:32:40 2019 +0100
+++ b/src/hotspot/share/gc/shared/taskqueue.inline.hpp	Mon Nov 25 12:33:15 2019 +0100
@@ -321,7 +321,7 @@
 
 template <unsigned int N, MEMFLAGS F>
 inline typename TaskQueueSuper<N, F>::Age TaskQueueSuper<N, F>::Age::cmpxchg(const Age new_age, const Age old_age) volatile {
-  return Atomic::cmpxchg(new_age._data, &_data, old_age._data);
+  return Atomic::cmpxchg(&_data, old_age._data, new_age._data);
 }
 
 template<class E, MEMFLAGS F, unsigned int N>