--- a/src/hotspot/os_cpu/windows_x86/atomic_windows_x86.hpp Mon Nov 25 12:22:13 2019 +0100
+++ b/src/hotspot/os_cpu/windows_x86/atomic_windows_x86.hpp Mon Nov 25 12:30:24 2019 +0100
@@ -213,8 +213,8 @@
template<>
template<typename T>
-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));
volatile T* src = &store_value;
__asm {
@@ -234,7 +234,7 @@
struct Atomic::PlatformOrderedStore<1, RELEASE_X_FENCE>
{
template <typename T>
- void operator()(T v, volatile T* p) const {
+ void operator()(volatile T* p, T v) const {
__asm {
mov edx, p;
mov al, v;
@@ -247,7 +247,7 @@
struct Atomic::PlatformOrderedStore<2, RELEASE_X_FENCE>
{
template <typename T>
- void operator()(T v, volatile T* p) const {
+ void operator()(volatile T* p, T v) const {
__asm {
mov edx, p;
mov ax, v;
@@ -260,7 +260,7 @@
struct Atomic::PlatformOrderedStore<4, RELEASE_X_FENCE>
{
template <typename T>
- void operator()(T v, volatile T* p) const {
+ void operator()(volatile T* p, T v) const {
__asm {
mov edx, p;
mov eax, v;