< prev index next >

src/hotspot/share/gc/shared/taskqueue.inline.hpp

Print this page

        

@@ -319,11 +319,11 @@
   return false;
 }
 
 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>
 template<class Fn>
 inline void GenericTaskQueue<E, F, N>::iterate(Fn fn) {
< prev index next >