src/hotspot/os_cpu/linux_zero/atomic_linux_zero.hpp
changeset 59248 e92153ed8bdc
parent 53244 9807daeb47c4
child 59249 29b0d0b61615
equal deleted inserted replaced
59247:56bf71d64d51 59248:e92153ed8bdc
   120   return PrimitiveConversions::cast<T>(dest);
   120   return PrimitiveConversions::cast<T>(dest);
   121 }
   121 }
   122 
   122 
   123 template<>
   123 template<>
   124 template<typename T>
   124 template<typename T>
   125 inline void Atomic::PlatformStore<8>::operator()(T store_value,
   125 inline void Atomic::PlatformStore<8>::operator()(T volatile* dest,
   126                                                  T volatile* dest) const {
   126                                                  T store_value) const {
   127   STATIC_ASSERT(8 == sizeof(T));
   127   STATIC_ASSERT(8 == sizeof(T));
   128   os::atomic_copy64(reinterpret_cast<const volatile int64_t*>(&store_value), reinterpret_cast<volatile int64_t*>(dest));
   128   os::atomic_copy64(reinterpret_cast<const volatile int64_t*>(&store_value), reinterpret_cast<volatile int64_t*>(dest));
   129 }
   129 }
   130 
   130 
   131 #endif // OS_CPU_LINUX_ZERO_ATOMIC_LINUX_ZERO_HPP
   131 #endif // OS_CPU_LINUX_ZERO_ATOMIC_LINUX_ZERO_HPP