< prev index next >

src/hotspot/os_cpu/windows_x86/orderAccess_windows_x86.inline.hpp

Print this page
rev 47383 : [mq]: OrderAccess_refactoring

*** 1,7 **** /* ! * Copyright (c) 2003, 2016, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. --- 1,7 ---- /* ! * Copyright (c) 2003, 2017, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation.
*** 72,115 **** compiler_barrier(); } #ifndef AMD64 template<> ! inline void OrderAccess::specialized_release_store_fence<jbyte> (volatile jbyte* p, jbyte v) { __asm { mov edx, p; mov al, v; xchg al, byte ptr [edx]; } ! } template<> ! inline void OrderAccess::specialized_release_store_fence<jshort>(volatile jshort* p, jshort v) { __asm { mov edx, p; mov ax, v; xchg ax, word ptr [edx]; } ! } template<> ! inline void OrderAccess::specialized_release_store_fence<jint> (volatile jint* p, jint v) { __asm { mov edx, p; mov eax, v; xchg eax, dword ptr [edx]; } ! } #endif // AMD64 - template<> - inline void OrderAccess::specialized_release_store_fence<jfloat>(volatile jfloat* p, jfloat v) { - release_store_fence((volatile jint*)p, jint_cast(v)); - } - template<> - inline void OrderAccess::specialized_release_store_fence<jdouble>(volatile jdouble* p, jdouble v) { - release_store_fence((volatile jlong*)p, jlong_cast(v)); - } - - #define VM_HAS_GENERALIZED_ORDER_ACCESS 1 - #endif // OS_CPU_WINDOWS_X86_VM_ORDERACCESS_WINDOWS_X86_INLINE_HPP --- 72,119 ---- compiler_barrier(); } #ifndef AMD64 template<> ! struct OrderAccess::PlatformOrderedStore<1, RELEASE_X_FENCE> ! VALUE_OBJ_CLASS_SPEC ! { ! template <typename T> ! void operator()(T v, volatile T* p) const { __asm { mov edx, p; mov al, v; xchg al, byte ptr [edx]; } ! } ! }; template<> ! struct OrderAccess::PlatformOrderedStore<2, RELEASE_X_FENCE> ! VALUE_OBJ_CLASS_SPEC ! { ! template <typename T> ! void operator()(T v, volatile T* p) const { __asm { mov edx, p; mov ax, v; xchg ax, word ptr [edx]; } ! } ! }; template<> ! struct OrderAccess::PlatformOrderedStore<4, RELEASE_X_FENCE> ! VALUE_OBJ_CLASS_SPEC ! { ! template <typename T> ! void operator()(T v, volatile T* p) const { __asm { mov edx, p; mov eax, v; xchg eax, dword ptr [edx]; } ! } ! }; #endif // AMD64 #endif // OS_CPU_WINDOWS_X86_VM_ORDERACCESS_WINDOWS_X86_INLINE_HPP
< prev index next >