--- old/src/hotspot/share/oops/access.hpp 2019-11-21 11:54:17.096054926 +0100 +++ new/src/hotspot/share/oops/access.hpp 2019-11-21 11:54:16.844050664 +0100 @@ -171,9 +171,9 @@ } template - static inline T atomic_xchg_at(T new_value, oop base, ptrdiff_t offset) { + static inline T atomic_xchg_at(oop base, ptrdiff_t offset, T new_value) { verify_primitive_decorators(); - return AccessInternal::atomic_xchg_at(new_value, base, offset); + return AccessInternal::atomic_xchg_at(base, offset, new_value); } // Oop heap accesses @@ -200,11 +200,11 @@ } template - static inline T oop_atomic_xchg_at(T new_value, oop base, ptrdiff_t offset) { + static inline T oop_atomic_xchg_at(oop base, ptrdiff_t offset, T new_value) { verify_heap_oop_decorators(); typedef typename AccessInternal::OopOrNarrowOop::type OopType; OopType new_oop_value = new_value; - return AccessInternal::atomic_xchg_at(new_oop_value, base, offset); + return AccessInternal::atomic_xchg_at(base, offset, new_oop_value); } // Clone an object from src to dst @@ -233,9 +233,9 @@ } template - static inline T atomic_xchg(T new_value, P* addr) { + static inline T atomic_xchg(P* addr, T new_value) { verify_primitive_decorators(); - return AccessInternal::atomic_xchg(new_value, addr); + return AccessInternal::atomic_xchg(addr, new_value); } // Oop accesses @@ -263,11 +263,11 @@ } template - static inline T oop_atomic_xchg(T new_value, P* addr) { + static inline T oop_atomic_xchg(P* addr, T new_value) { verify_oop_decorators(); typedef typename AccessInternal::OopOrNarrowOop::type OopType; OopType new_oop_value = new_value; - return AccessInternal::atomic_xchg(new_oop_value, addr); + return AccessInternal::atomic_xchg(addr, new_oop_value); } static oop resolve(oop obj) {