diff -r 4cbfa5077d68 -r 623722a6aeb9 src/hotspot/share/gc/shared/taskqueue.inline.hpp --- 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 inline typename TaskQueueSuper::Age TaskQueueSuper::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