src/hotspot/os_cpu/bsd_zero/atomic_bsd_zero.hpp
changeset 59248 e92153ed8bdc
parent 53244 9807daeb47c4
child 59249 29b0d0b61615
equal deleted inserted replaced
59247:56bf71d64d51 59248:e92153ed8bdc
   274   return PrimitiveConversions::cast<T>(dest);
   274   return PrimitiveConversions::cast<T>(dest);
   275 }
   275 }
   276 
   276 
   277 template<>
   277 template<>
   278 template<typename T>
   278 template<typename T>
   279 inline void Atomic::PlatformStore<8>::operator()(T store_value,
   279 inline void Atomic::PlatformStore<8>::operator()(T volatile* dest,
   280                                                  T volatile* dest) const {
   280                                                  T store_value) const {
   281   STATIC_ASSERT(8 == sizeof(T));
   281   STATIC_ASSERT(8 == sizeof(T));
   282   os::atomic_copy64(reinterpret_cast<const volatile int64_t*>(&store_value), reinterpret_cast<volatile int64_t*>(dest));
   282   os::atomic_copy64(reinterpret_cast<const volatile int64_t*>(&store_value), reinterpret_cast<volatile int64_t*>(dest));
   283 }
   283 }
   284 
   284 
   285 #endif // OS_CPU_BSD_ZERO_ATOMIC_BSD_ZERO_HPP
   285 #endif // OS_CPU_BSD_ZERO_ATOMIC_BSD_ZERO_HPP