--- old/src/hotspot/share/gc/shenandoah/shenandoahBarrierSet.hpp 2019-11-21 11:55:10.580959384 +0100 +++ new/src/hotspot/share/gc/shenandoah/shenandoahBarrierSet.hpp 2019-11-21 11:55:10.324955056 +0100 @@ -142,7 +142,7 @@ typedef BarrierSet::AccessBarrier Raw; template - static oop oop_atomic_cmpxchg_in_heap_impl(oop new_value, T* addr, oop compare_value); + static oop oop_atomic_cmpxchg_in_heap_impl(T* addr, oop compare_value, oop new_value); template static oop oop_atomic_xchg_in_heap_impl(T* addr, oop new_value); @@ -160,8 +160,8 @@ static void oop_store_in_heap_at(oop base, ptrdiff_t offset, oop value); template - static oop oop_atomic_cmpxchg_in_heap(oop new_value, T* addr, oop compare_value); - static oop oop_atomic_cmpxchg_in_heap_at(oop new_value, oop base, ptrdiff_t offset, oop compare_value); + static oop oop_atomic_cmpxchg_in_heap(T* addr, oop compare_value, oop new_value); + static oop oop_atomic_cmpxchg_in_heap_at(oop base, ptrdiff_t offset, oop compare_value, oop new_value); template static oop oop_atomic_xchg_in_heap(T* addr, oop new_value); @@ -184,7 +184,7 @@ static void oop_store_not_in_heap(T* addr, oop value); template - static oop oop_atomic_cmpxchg_not_in_heap(oop new_value, T* addr, oop compare_value); + static oop oop_atomic_cmpxchg_not_in_heap(T* addr, oop compare_value, oop new_value); template static oop oop_atomic_xchg_not_in_heap(T* addr, oop new_value);