< prev index next >
src/os_cpu/windows_x86/vm/atomic_windows_x86.hpp
Print this page
rev 13452 : [mq]: coleen_review1
rev 13458 : imported patch cmpxchg_using_helper
*** 114,125 ****
template<typename T> \
inline T Atomic::PlatformCmpxchg<ByteSize>::operator()(T exchange_value, \
T volatile* dest, \
T compare_value, \
cmpxchg_memory_order order) const { \
! return cmpxchg_using_stub<StubType>(StubName, exchange_value, dest, compare_value); \
! }
DEFINE_STUB_CMPXCHG(1, jbyte, os::atomic_cmpxchg_byte_func)
DEFINE_STUB_CMPXCHG(4, jint, os::atomic_cmpxchg_func)
DEFINE_STUB_CMPXCHG(8, jlong, os::atomic_cmpxchg_long_func)
--- 114,126 ----
template<typename T> \
inline T Atomic::PlatformCmpxchg<ByteSize>::operator()(T exchange_value, \
T volatile* dest, \
T compare_value, \
cmpxchg_memory_order order) const { \
! STATIC_ASSERT(ByteSize == sizeof(T)); \
! return cmpxchg_using_helper<StubType>(StubName, exchange_value, dest, compare_value); \
! }
DEFINE_STUB_CMPXCHG(1, jbyte, os::atomic_cmpxchg_byte_func)
DEFINE_STUB_CMPXCHG(4, jint, os::atomic_cmpxchg_func)
DEFINE_STUB_CMPXCHG(8, jlong, os::atomic_cmpxchg_long_func)
< prev index next >