< prev index next >
src/hotspot/os_cpu/linux_s390/atomic_linux_s390.hpp
Print this page
*** 206,217 ****
//
// The return value is the (unchanged) value from memory as it was when the
// replacement succeeded.
template<>
template<typename T>
! inline T Atomic::PlatformXchg<4>::operator()(T exchange_value,
! T volatile* dest,
atomic_memory_order unused) const {
STATIC_ASSERT(4 == sizeof(T));
T old;
__asm__ __volatile__ (
--- 206,217 ----
//
// The return value is the (unchanged) value from memory as it was when the
// replacement succeeded.
template<>
template<typename T>
! inline T Atomic::PlatformXchg<4>::operator()(T volatile* dest,
! T exchange_value,
atomic_memory_order unused) const {
STATIC_ASSERT(4 == sizeof(T));
T old;
__asm__ __volatile__ (
*** 230,241 ****
return old;
}
template<>
template<typename T>
! inline T Atomic::PlatformXchg<8>::operator()(T exchange_value,
! T volatile* dest,
atomic_memory_order unused) const {
STATIC_ASSERT(8 == sizeof(T));
T old;
__asm__ __volatile__ (
--- 230,241 ----
return old;
}
template<>
template<typename T>
! inline T Atomic::PlatformXchg<8>::operator()(T volatile* dest,
! T exchange_value,
atomic_memory_order unused) const {
STATIC_ASSERT(8 == sizeof(T));
T old;
__asm__ __volatile__ (
< prev index next >