--- 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>