diff -r 56bf71d64d51 -r e92153ed8bdc src/hotspot/os_cpu/bsd_x86/atomic_bsd_x86.hpp --- a/src/hotspot/os_cpu/bsd_x86/atomic_bsd_x86.hpp Mon Nov 25 12:22:13 2019 +0100 +++ b/src/hotspot/os_cpu/bsd_x86/atomic_bsd_x86.hpp Mon Nov 25 12:30:24 2019 +0100 @@ -161,8 +161,8 @@ template<> template -inline void Atomic::PlatformStore<8>::operator()(T store_value, - T volatile* dest) const { +inline void Atomic::PlatformStore<8>::operator()(T volatile* dest, + T store_value) const { STATIC_ASSERT(8 == sizeof(T)); _Atomic_move_long(reinterpret_cast(&store_value), reinterpret_cast(dest)); } @@ -173,7 +173,7 @@ struct Atomic::PlatformOrderedStore<1, RELEASE_X_FENCE> { template - void operator()(T v, volatile T* p) const { + void operator()(volatile T* p, T v) const { __asm__ volatile ( "xchgb (%2),%0" : "=q" (v) : "0" (v), "r" (p) @@ -185,7 +185,7 @@ struct Atomic::PlatformOrderedStore<2, RELEASE_X_FENCE> { template - void operator()(T v, volatile T* p) const { + void operator()(volatile T* p, T v) const { __asm__ volatile ( "xchgw (%2),%0" : "=r" (v) : "0" (v), "r" (p) @@ -197,7 +197,7 @@ struct Atomic::PlatformOrderedStore<4, RELEASE_X_FENCE> { template - void operator()(T v, volatile T* p) const { + void operator()(volatile T* p, T v) const { __asm__ volatile ( "xchgl (%2),%0" : "=r" (v) : "0" (v), "r" (p) @@ -210,7 +210,7 @@ struct Atomic::PlatformOrderedStore<8, RELEASE_X_FENCE> { template - void operator()(T v, volatile T* p) const { + void operator()(volatile T* p, T v) const { __asm__ volatile ( "xchgq (%2), %0" : "=r" (v) : "0" (v), "r" (p)