diff -r a6deb69743d4 -r 4cbfa5077d68 src/hotspot/os_cpu/linux_arm/atomic_linux_arm.hpp --- a/src/hotspot/os_cpu/linux_arm/atomic_linux_arm.hpp Mon Nov 25 12:32:07 2019 +0100 +++ b/src/hotspot/os_cpu/linux_arm/atomic_linux_arm.hpp Mon Nov 25 12:32:40 2019 +0100 @@ -86,11 +86,11 @@ template<> template -inline T Atomic::PlatformXchg<4>::operator()(T exchange_value, - T volatile* dest, +inline T Atomic::PlatformXchg<4>::operator()(T volatile* dest, + T exchange_value, atomic_memory_order order) const { STATIC_ASSERT(4 == sizeof(T)); - return xchg_using_helper(os::atomic_xchg_func, exchange_value, dest); + return xchg_using_helper(os::atomic_xchg_func, dest, exchange_value); }