--- old/src/hotspot/os_cpu/windows_x86/atomic_windows_x86.hpp 2019-11-21 11:54:10.071936119 +0100 +++ new/src/hotspot/os_cpu/windows_x86/atomic_windows_x86.hpp 2019-11-21 11:54:09.819931857 +0100 @@ -79,11 +79,11 @@ #define DEFINE_STUB_XCHG(ByteSize, StubType, StubName) \ template<> \ template \ - inline T Atomic::PlatformXchg::operator()(T exchange_value, \ - T volatile* dest, \ + inline T Atomic::PlatformXchg::operator()(T volatile* dest, \ + T exchange_value, \ atomic_memory_order order) const { \ STATIC_ASSERT(ByteSize == sizeof(T)); \ - return xchg_using_helper(StubName, exchange_value, dest); \ + return xchg_using_helper(StubName, dest, exchange_value); \ } DEFINE_STUB_XCHG(4, int32_t, os::atomic_xchg_func) @@ -127,8 +127,8 @@ 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)); // alternative for InterlockedExchange