--- old/src/hotspot/share/gc/shenandoah/shenandoahBarrierSet.hpp 2019-11-21 11:57:32.723361488 +0100 +++ new/src/hotspot/share/gc/shenandoah/shenandoahBarrierSet.hpp 2019-11-21 11:57:32.227353110 +0100 @@ -142,10 +142,10 @@ 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(oop new_value, T* addr); + static oop oop_atomic_xchg_in_heap_impl(T* addr, oop new_value); public: // Heap oop accesses. These accessors get resolved when @@ -160,12 +160,12 @@ 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(oop new_value, T* addr); - static oop oop_atomic_xchg_in_heap_at(oop new_value, oop base, ptrdiff_t offset); + static oop oop_atomic_xchg_in_heap(T* addr, oop new_value); + static oop oop_atomic_xchg_in_heap_at(oop base, ptrdiff_t offset, oop new_value); template static bool oop_arraycopy_in_heap(arrayOop src_obj, size_t src_offset_in_bytes, T* src_raw, @@ -184,10 +184,10 @@ 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(oop new_value, T* addr); + static oop oop_atomic_xchg_not_in_heap(T* addr, oop new_value); };